← Back to team overview

openerp-india team mailing list archive

[Bug 1306541] [NEW] Changing a user-defined standard value results in an error message

 

Public bug reported:

Changing or creating user-defined standard value results in an error
message.

Steps to reproduce.

1. Go to settings =>  Technical => Actions => User-defined defaults

2. Try to create new user-defined standard or change in comment field.

3. write german umlaute (ä, ö, ü) or any special character like 'Á'
gives error following traceback.

please confirm it and give high priority as its blocking points.

I also attached video to for steps to reproduce it.

Traceback:

Server Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/addons/audittrail/audittrail.py", line 524, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/orm.py", line 4546, in create
    result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/fields.py", line 1159, in set
    self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/addons/base/ir/ir_values.py", line 125, in _value_pickle
    self.write(cursor, user, id, {name[:-9]: value}, context=ctx)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/orm.py", line 4226, in write
    'where id IN %s', upd1 + [sub_ids])
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
DataError: invalid byte sequence for encoding "UTF8": 0xc1 0x0a

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1306541

Title:
  Changing a user-defined standard value results in an error message

Status in OpenERP Addons (modules):
  New

Bug description:
  Changing or creating user-defined standard value results in an error
  message.

  Steps to reproduce.

  1. Go to settings =>  Technical => Actions => User-defined defaults

  2. Try to create new user-defined standard or change in comment field.

  3. write german umlaute (ä, ö, ü) or any special character like 'Á'
  gives error following traceback.

  please confirm it and give high priority as its blocking points.

  I also attached video to for steps to reproduce it.

  Traceback:

  Server Traceback (most recent call last):
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/addons/web/session.py", line 89, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/netsvc.py", line 296, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/service/web_services.py", line 626, in dispatch
      res = fn(db, uid, *params)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 190, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 132, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 199, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/addons/audittrail/audittrail.py", line 524, in execute_cr
      return fct_src(cr, uid, model, method, *args, **kw)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/osv.py", line 187, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/orm.py", line 4546, in create
      result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/fields.py", line 1159, in set
      self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/addons/base/ir/ir_values.py", line 125, in _value_pickle
      self.write(cursor, user, id, {name[:-9]: value}, context=ctx)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/osv/orm.py", line 4226, in write
      'where id IN %s', upd1 + [sub_ids])
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/sql_db.py", line 161, in wrapper
      return f(self, *args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-7-0-30742/server/openerp/sql_db.py", line 226, in execute
      res = self._obj.execute(query, params)
  DataError: invalid byte sequence for encoding "UTF8": 0xc1 0x0a

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1306541/+subscriptions


Follow ups

References