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
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_departmen t.py line 98 modify like thisfollowing -/+ : ].replace( mystring, str(obj_ dept._get_ members( cr, uid))) ].replace( mystring, tools.ustr( obj_dept. _get_members( cr, uid)))
- r['domain'] = r['domain'
+ r['domain'] = r['domain'
(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