product: browsing product by category raise unicode error

Bug #315378 reported by Xavier ALT
4
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Create a new Product Category with unicode caracters.

Go to Products -> Product by Category
Double-clic on category with accent.

[Fri Jan 09 2009 09:47:29] ERROR:web-services:[01]: Traceback (most recent call last):
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[02]: File "/home/dex/Work/dex4/server/bin/osv/osv.py", line 59, in wrapper
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[03]: return f(self, dbname, *args, **kwargs)
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[04]: File "/home/dex/Work/dex4/server/bin/osv/osv.py", line 119, in execute
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[05]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[06]: File "/home/dex/Work/dex4/server/bin/osv/osv.py", line 111, in execute_cr
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[07]: return getattr(object, method)(cr, uid, *args, **kw)
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[08]: File "/home/dex/Work/dex4/server/bin/osv/orm.py", line 1073, in fields_view_get
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[09]: xarch, xfields = self.__view_look_dom_arch(cr, user, doc, context=context)
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[10]: File "/home/dex/Work/dex4/server/bin/osv/orm.py", line 857, in __view_look_dom_arch
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[11]: fields_def = self.__view_look_dom(cr, user, node, context=context)
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[12]: File "/home/dex/Work/dex4/server/bin/osv/orm.py", line 849, in __view_look_dom
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[13]: fields.update(self.__view_look_dom(cr, user, f, context))
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[14]: File "/home/dex/Work/dex4/server/bin/osv/orm.py", line 815, in __view_look_dom
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[15]: node.setAttribute('string', result.decode('utf-8'))
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[16]: File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[17]: return codecs.utf_8_decode(input, errors, True)
[Fri Jan 09 2009 09:47:29] ERROR:web-services:[18]: UnicodeEncodeError: 'ascii' codec can't encode characters in position 23-24: ordinal not in range(128)

versions:
oo-server: 1581
oo-addons: 2083
oo-client: 874

Changed in openobject-addons:
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
Xavier ALT (dex-phx) wrote :
Changed in openobject-server:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.