HR Attendance: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 384: ordinal not in range(128)

Bug #771657 reported by Amit Parik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Steps To reproduce:
Open the Employee form view.
print the "Attendance By week " Report faced the following traceback on server side.

[2011-04-27 12:21:02,240][db_bug] ERROR:web-services:[01]:
[2011-04-27 12:21:02,241][db_bug] ERROR:web-services:[02]: Environment Information :
[2011-04-27 12:21:02,241][db_bug] ERROR:web-services:[03]: System : Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid
[2011-04-27 12:21:02,241][db_bug] ERROR:web-services:[04]: OS Name : posix
[2011-04-27 12:21:02,242][db_bug] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2011-04-27 12:21:02,242][db_bug] ERROR:web-services:[06]: Description: Ubuntu 10.04 LTS
[2011-04-27 12:21:02,242][db_bug] ERROR:web-services:[07]: Release: 10.04
[2011-04-27 12:21:02,242][db_bug] ERROR:web-services:[08]: Codename: lucid
[2011-04-27 12:21:02,243][db_bug] ERROR:web-services:[09]: Operating System Release : 2.6.32-22-generic
[2011-04-27 12:21:02,243][db_bug] ERROR:web-services:[10]: Operating System Version : #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010
[2011-04-27 12:21:02,248][db_bug] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2011-04-27 12:21:02,249][db_bug] ERROR:web-services:[12]: Operating System Locale : en_IN.UTF8
[2011-04-27 12:21:02,249][db_bug] ERROR:web-services:[13]: Python Version : 2.6.5
[2011-04-27 12:21:02,249][db_bug] ERROR:web-services:[14]: OpenERP-Server Version : 6.1-dev
[2011-04-27 12:21:02,249][db_bug] ERROR:web-services:[15]: Exception: 'ascii' codec can't decode byte 0xc3 in position 384: ordinal not in range(128)
[2011-04-27 12:21:02,250][db_bug] ERROR:web-services:[16]: Traceback (most recent call last):
[2011-04-27 12:21:02,250][db_bug] ERROR:web-services:[17]: File "/home/tiny/workspace/openobject-server/openerp/service/web_services.py", line 723, in go
[2011-04-27 12:21:02,250][db_bug] ERROR:web-services:[18]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-04-27 12:21:02,250][db_bug] ERROR:web-services:[19]: File "/home/tiny/workspace/openobject-server/openerp/report/interface.py", line 86, in create
[2011-04-27 12:21:02,250][db_bug] ERROR:web-services:[20]: xml = self.create_xml(cr, uid, ids, datas, context)
[2011-04-27 12:21:02,250][db_bug] ERROR:web-services:[21]: File "/home/tiny/workspace/openobject-addons/hr_attendance/report/timesheet.py", line 112, in create_xml
[2011-04-27 12:21:02,251][db_bug] ERROR:web-services:[22]: return self.post_process_xml_data(cr, uid, xml, context)
[2011-04-27 12:21:02,251][db_bug] ERROR:web-services:[23]: File "/home/tiny/workspace/openobject-server/openerp/report/interface.py", line 132, in post_process_xml_data
[2011-04-27 12:21:02,251][db_bug] ERROR:web-services:[24]: return xml[:pos_xml] + corporate_header[pos_header:] + xml[pos_xml:]
[2011-04-27 12:21:02,251][db_bug] ERROR:web-services:[25]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 384: ordinal not in range(128)

Thanks.

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Meera Trambadia (OpenERP) (mtr-openerp) wrote :

Hello Amit,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-771657-mtr branch.
Revision ID: mtr@mtr-20110427130852-6d8odic2ng8wwmlm
Revision no: 4674

Thanks
mtr

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
summary: - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
- 384: ordinal not in range(128)
+ HR Attendance: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3
+ in position 384: ordinal not in range(128)
qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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