[IMP]: check if context is none
bzr revid: ksa@tinyerp.co.in-20110216104558-seg6lbd3ccm20s2u
This commit is contained in:
parent
a8d7bde551
commit
88bcdbd41d
|
@ -716,6 +716,8 @@ class product_supplierinfo(osv.osv):
|
|||
return result
|
||||
|
||||
def _get_uom_id(self, cr, uid, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
uom_id = context.get('uom_id', False)
|
||||
if uom_id:
|
||||
return uom_id
|
||||
|
|
Loading…
Reference in New Issue