[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
This commit is contained in:
Christophe Simonis 2009-01-07 17:00:12 +01:00
parent 78d2de2600
commit bc3451b402
1 changed files with 2 additions and 2 deletions

View File

@ -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"