[FIX] Stock : Forecast report: unicode error corrected
authorACH(OpenERP) <>
Wed, 18 Nov 2009 12:10:11 +0000 (17:40 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Wed, 18 Nov 2009 12:10:11 +0000 (17:40 +0530)
lp bug: https://launchpad.net/bugs/481524 fixed

bzr revid: jvo@tinyerp.com-20091118121011-i9ggw4sze11f1bem

addons/stock/report/product_stock.py

index 3f1b65b..b5ca5aa 100644 (file)
@@ -57,6 +57,8 @@ class report_stock(report_int):
         dt_to = now
 
         names = dict(pooler.get_pool(cr.dbname).get('product.product').name_get(cr, uid, product_ids))
+        for name in names:
+            names[name] = names[name].encode('utf8')
         products = {}
         prods = pooler.get_pool(cr.dbname).get('stock.location')._product_all_get(cr, uid, location_id, product_ids)