c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12985
[Bug 695960] Re: [6.0RC1][hr_timesheet]Problems printing timesheet reports
Hello Alberto,
The situation was improved in the server with revision 3286
odo@xxxxxxxxxxx-20110117172159-1soh6uwdyrw66jlt, with a patch similar to
what Yogesh originally did, but more consistent for all cases. Upgrading
to this revision should solve this for you.
In addition, all addons that used to handle string with accents in an
incorrect manner when building reports will also be fixed, and those
patches will be merged tonight (some modifications will be done in
above-proposed branches to make them correct as well).
Thank for you patience and for taking the time to report this bug and
propose a patch!
--
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/695960
Title:
[6.0RC1][hr_timesheet]Problems printing timesheet reports
Status in OpenObject Addons Modules:
Fix Released
Bug description:
Hi community,
Using following revisions of 6.0RC1 branch:
server: 3163 (12/28/2010)
gtk: 1738 (12/28/2010)
addons: 4033 (12/28/2010)
I got following error trying to print an employee timesheet:
[2010-12-31 12:33:46,443][XXX] ERROR:web-services:[07]: File "/opt/openerp/6.0/trunk/server/bin/addons/hr_timesheet/report/users_timesheet.py", line 114, in create_xml
[2010-12-31 12:33:46,443][XXX] ERROR:web-services:[08]: ''' % (header_xml,date_xml, emp_xml)
[2010-12-31 12:33:46,444][XXX] ERROR:web-services:[09]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 41: ordinal not in range(128)
This is because the employee I selected have accents in his name and/or surname. Same happening in 'Employees Timesheet' report.
I attach proposal patch.
Regards and best wishes for 2011!
References