c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08456
[Bug 610883] Re: v6 employee/employees timesheet Dataerror
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
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/610883
Title:
v6 employee/employees timesheet Dataerror
Status in OpenObject Server:
Fix Released
Bug description:
menus :
human resources>reporting>timesheet>employee timesheet
human resources>reporting>timesheet>employees timesheet
same error for this 2 submenus :
Environment Information :
System : Windows-32bit-SP2
OS Name : nt
Operating System Release :
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : fr_FR.cp1252
Python Version : 2.5.4
OpenERP-Client Version : 6.0dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "netsvc.pyo", line 401, in dispatch
File "service\web_services.pyo", line 584, in dispatch
File "osv\osv.pyo", line 57, in wrapper
File "osv\osv.pyo", line 133, in execute
File "osv\osv.pyo", line 123, in execute_cr
File "d:\OpenERP AllInOne\Server\addons\base_calendar\base_calendar.py", line 1755, in get
File "d:\OpenERP AllInOne\Server\addons\base\ir\ir_values.py", line 221, in get
File "d:\OpenERP AllInOne\Server\addons\base\ir\ir_values.py", line 221, in <lambda>
File "d:\OpenERP AllInOne\Server\addons\base\ir\ir_values.py", line 207, in _result_get
File "d:\OpenERP AllInOne\Server\addons\hr\hr_department.py", line 102, in read
File "osv\orm.pyo", line 2805, in read
File "osv\orm.pyo", line 2941, in _read_flat
File "osv\fields.pyo", line 695, in get
File "d:\OpenERP AllInOne\Server\addons\base\ir\ir_actions.py", line 172, in _search_view
File "osv\orm.pyo", line 1136, in fields_get
File "tools\misc.pyo", line 802, in cached_result
File "d:\OpenERP AllInOne\Server\addons\base\ir\ir_translation.py", line 136, in _get_source
File "sql_db.pyo", line 74, in wrapper
File "sql_db.pyo", line 119, in execute
DataError: invalid byte sequence for encoding "UTF8": 0xe97672
HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".