Ravish(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1038974-rmu into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1038974 in OpenERP Addons: "[trunk] Products by Category has traceback"
  https://bugs.launchpad.net/openobject-addons/+bug/1038974

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1038974-rmu/+merge/120500

Hello

With this merge proposal sale's product by category menu working normally.

Thanks..!!!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1038974-rmu/+merge/120500
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1038974-rmu.
=== modified file 'product/product.py'
--- product/product.py	2012-08-14 14:10:40 +0000
+++ product/product.py	2012-08-21 05:38:20 +0000
@@ -195,8 +195,8 @@
 class product_category(osv.osv):
 
     def name_get(self, cr, uid, ids, context=None):
-        if not len(ids):
-            return []
+        if ids and isinstance(ids, int):
+            ids = [ids]
         reads = self.read(cr, uid, ids, ['name','parent_id'], context=context)
         res = []
         for record in reads:

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to