← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 779727] Re: [6.0 & trunk] [Import data] Message of error generate unicode exception

 

** Changed in: openobject-server
   Importance: Undecided => Medium

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

** Summary changed:

- [6.0 & trunk] [Import data] Message of error generate unicode exception
+ [Import data] Message of error generate unicode exception

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

Title:
  [Import data] Message of error generate unicode exception

Status in OpenERP Server:
  Confirmed

Bug description:
  1) Steps to reproduce the issue you have observed
   1.1) Change OpenERP Language to Spanish (Spain)
   1.2) Configurate a user with new language spanish
   1.3) Access to OpenERP with User of 1.2)
   1.4) Generate a csv template for import sale.order
   1.5) Access to Menu -> Ventas/Ventas/Pedidos de ventas -> Otra información
   1.6) Check the value of the field "Picking Policy" (Política de envío), it have "Envío parcial"
   1.7) Put value: "Envío parcial", in csv template for import
   1.8) Try import the csv

  2) The result you observed
   2.1) I have a error of unicode exception
  \OpenERP-6.0\server\bin\osv\orm.py:841: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
    if line[i] in [tools.ustr(key), tools.ustr(val)]:
  [2011-05-08 23:28:28,576][oerp6] ?[1;31m?[1;49mERROR?[0m:web-services:Uncaught exception
  Traceback (most recent call last):
    File "\OpenERP-6.0\server\bin\osv\osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "\OpenERP-6.0\server\bin\osv\osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "\OpenERP-6.0\server\bin\osv\osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "\OpenERP-6.0\server\bin\osv\orm.py", line 868, in import_data
      process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
    File "\OpenERP-6.0\server\bin\osv\orm.py", line 847, in process_liness
      (line[i], field[len(prefix)]))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)

  3) The result you expected
  A normal "window error" of OpenERP import

  4) The platform your are using
  Windows

  5) The OpenERP version you are using (e.g. 5.0.15, 6.0-dev), if possible including the specific revision (e.g. rev. 2824) if you take the sources directly from Bazaar
   5.1) OpenERP-server ver 6.0 revno 3421
   5.2) OpenERP-server ver trunk revno 3402


References