← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 719137] [NEW] Unable to handle character above 128

 

Public bug reported:

With this product name:

LED RED LOW CURRENT T-1 ¾

When I try to update the stock in the product menu, I get the following:

Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/share/pyshared/openerp-server/addons/stock/wizard/stock_change_product_qty.py", line 87, in change_product_qty
    inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') + str(res_original.name)}, context=context)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbe' in position 24: ordinal not in range(128)

If I delete the ¾ character is doesn't crash.

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

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

Title:
  Unable to handle character above 128

Status in OpenERP Server:
  New

Bug description:
  With this product name:

  LED RED LOW CURRENT T-1 ¾

  When I try to update the stock in the product menu, I get the
  following:

  Traceback (most recent call last):
    File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/share/pyshared/openerp-server/addons/stock/wizard/stock_change_product_qty.py", line 87, in change_product_qty
      inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') + str(res_original.name)}, context=context)
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xbe' in position 24: ordinal not in range(128)

  If I delete the ¾ character is doesn't crash.





Follow ups

References