Comment 23 for bug 610883

Revision history for this message
GEM (nimp3) wrote :

Hi,
I believe that str() shouldn't be used with error that this function give always as you have :
UnicodeDecodeError

see and change in (save the original file):

server\addons\hr\hr_department.py line 98 modify like thisfollowing -/+ :
- r['domain'] = r['domain'].replace(mystring, str(obj_dept._get_members(cr, uid)))
+ r['domain'] = r['domain'].replace(mystring, tools.ustr(obj_dept._get_members(cr, uid)))
 (ustr is utf8 encoding)

delete files :
hr_department.pyc
hr_department.pyo
restart the server
update the module

I believe it is a possibility (but a recurrent error in openerp code), but it should be an other thing.
Try and test.
thanks
bye