[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:
parent
78d2de2600
commit
bc3451b402
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue