← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 610883] Re: v6 employee/employees timesheet Dataerror

 

Yes, I use only sources without build installer

I installed the last version of mx datetime (3.1.3) and python-dateutil.

But I have yet the error when I want print employee(s) timesheet :

Traceback (most recent call last):
  File "E:\OpenERP\trunk\server\bin\netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "E:\OpenERP\trunk\server\bin\service\web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "E:\OpenERP\trunk\server\bin\osv\osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "E:\OpenERP\trunk\server\bin\osv\osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "E:\OpenERP\trunk\server\bin\osv\osv.py", line 193, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "E:\OpenERP\trunk\server\bin\osv\orm.py", line 1748, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=context)
  File "E:\OpenERP\trunk\server\bin\osv\orm.py", line 1453, in __view_look_dom_arch
    fields = self.fields_get(cr, user, fields_def.keys(), context)
  File "E:\OpenERP\trunk\server\bin\osv\orm.py", line 1256, in fields_get
    val2 = translation_obj._get_source(cr, user, self._name + ',' + f, 'selection', context.get('lang', False) or 'en_US', val)
  File "E:\OpenERP\trunk\server\bin\tools\misc.py", line 797, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "E:\OpenERP\trunk\server\bin\addons\base\ir\ir_translation.py", line 162, in _get_source
    (lang or '', types, tools.ustr(name), source))
  File "E:\OpenERP\trunk\server\bin\sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "E:\OpenERP\trunk\server\bin\sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
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".

In which file I must do this change :

-(lang or '', tt, tools.ustr(name), source))
+(lang or '', tt, tools.ustr(name), tools.ustr(source)))

??

Thx for your help!

-- 
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".