project timesheet Umlaute Error

Bug #352262 reported by Ferdinand
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

when I try to update the textfield with German Umlaut (ö etc) - Insert works

Traceback (most recent call last):
  File "/data/downloads/bzr/branch/server/5.0/bin/netsvc.py", line 235, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/data/downloads/bzr/branch/server/5.0/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/data/downloads/bzr/openobject-server/bin/addons/audittrail/audittrail.py", line 341, in execute
    res = my_fct( db, uid, passwd, object, method, *args)
  File "/data/downloads/bzr/openobject-server/bin/addons/audittrail/audittrail.py", line 331, in my_fct
    return fct_src( db, uid, passwd, object, method, *args)
  File "/data/downloads/bzr/branch/server/5.0/bin/service/web_services.py", line 497, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/data/downloads/bzr/branch/server/5.0/bin/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/data/downloads/bzr/branch/server/5.0/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/data/downloads/bzr/branch/server/5.0/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/data/downloads/bzr/branch/server/5.0/bin/osv/orm.py", line 2264, in write
    self._columns[field].set(cr, self, id, field, vals[field], user, context=context)
  File "/data/downloads/bzr/branch/server/5.0/bin/osv/fields.py", line 431, in set
    obj.write(cr, user, [act[1]], act[2], context=context)
  File "/data/downloads/bzr/openobject-server/bin/addons/project_timesheet/project_timesheet.py", line 81, in write
    vals_line['name'] = '%s: %s' % (task.name, vals['name'] or '/')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)

Revision history for this message
Husen Daudi (husendaudi) wrote :

Its Encoding problem in NET-RPC.
I can use ö with 8069 and XML-RPC connection no error occurs.
with 8070 NET-RPC I am getting same error.

Revision history for this message
Husen Daudi (husendaudi) wrote :

Fixed in trunk addons revision 2265.
Thanks.

Changed in openobject-addons:
status: New → Fix Released
Revision history for this message
Ferdinand (office-chricar) wrote :

the fix works, pls could you also commit to to 5.0 branch
it was my understanding that all commits (for bug fixes) go to branch and will be (back)ported to trunk !?

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.