[IMP]: check if context is none

bzr revid: ksa@tinyerp.co.in-20110216104558-seg6lbd3ccm20s2u
This commit is contained in:
ksa (Open ERP) 2011-02-16 16:15:58 +05:30
parent a8d7bde551
commit 88bcdbd41d
1 changed files with 2 additions and 0 deletions

View File

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