From bc3451b40253f5e7812cd78fb3b115bdc4804319 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 7 Jan 2009 17:00:12 +0100 Subject: [PATCH] [FIX] product: complete_name: pass the context to name_get lp bug: https://launchpad.net/bugs/314723 fixed bzr revid: christophe@tinyerp.com-20090107160012-18v2klefi72tan3k --- addons/product/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index 90348783a0c..8378e682dae 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -174,7 +174,7 @@ product_ul() #---------------------------------------------------------- class product_category(osv.osv): - def name_get(self, cr, uid, ids, context={}): + def name_get(self, cr, uid, ids, context=None): if not len(ids): return [] reads = self.read(cr, uid, ids, ['name','parent_id'], context) @@ -187,7 +187,7 @@ class product_category(osv.osv): return res def _name_get_fnc(self, cr, uid, ids, prop, unknow_none, context): - res = self.name_get(cr, uid, ids) + res = self.name_get(cr, uid, ids, context) return dict(res) _name = "product.category"