← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
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/771657

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

Status in OpenERP Modules (addons):
  Fix Released

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.


References