← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 707809] [NEW] UnicodeEncodeError in addons\stock\wizard\stock_change_product_qty.py

 

Public bug reported:

in stock module line
87..(addons\stock\wizard\stock_change_product_qty.py", line 87  OE
server 6.0.1 windows all in one.)

inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
str(res_original.name)}, context=context)

I got the "UnicodeEncodeError" exception.

and I fixed it with:

inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
res_original.name}, context=context)

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

** Description changed:

- in stock module line 87..
+ in stock module line
+ 87..(addons\stock\wizard\stock_change_product_qty.py", line 87)
  
  
  inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') + str(res_original.name)}, context=context)
  
  I got the "UnicodeEncodeError" exception.
  
  and I fixed it with:
  
  inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
  res_original.name}, context=context)

** Description changed:

  in stock module line
- 87..(addons\stock\wizard\stock_change_product_qty.py", line 87)
+ 87..(addons\stock\wizard\stock_change_product_qty.py", line 87  OE
+ server 6.0.1 windows all in one.)
  
- 
- inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') + str(res_original.name)}, context=context)
+ inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
+ str(res_original.name)}, context=context)
  
  I got the "UnicodeEncodeError" exception.
  
  and I fixed it with:
  
  inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
  res_original.name}, context=context)

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

Title:
  UnicodeEncodeError in addons\stock\wizard\stock_change_product_qty.py

Status in OpenERP Modules (addons):
  New

Bug description:
  in stock module line
  87..(addons\stock\wizard\stock_change_product_qty.py", line 87  OE
  server 6.0.1 windows all in one.)

  inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
  str(res_original.name)}, context=context)

  I got the "UnicodeEncodeError" exception.

  and I fixed it with:

  inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') +
  res_original.name}, context=context)





Follow ups

References