[FIX]product:Product UoM conversion error needs definition
lp bug: https://launchpad.net/bugs/716705 fixed bzr revid: ron@tinyerp.com-20110211130200-hsc3iaasjizn5ipn
This commit is contained in:
parent
9be8ea5995
commit
bf880017ea
|
@ -139,7 +139,7 @@ class product_uom(osv.osv):
|
|||
context = {}
|
||||
if from_unit.category_id.id <> to_unit.category_id.id:
|
||||
if context.get('raise-exception', True):
|
||||
raise osv.except_osv(_('Error !'), _('Conversion from Product UoM m to Default UoM PCE is not possible as they both belong to different Category!.'))
|
||||
raise osv.except_osv(_('Error !'), _('Conversion from Product UoM %s to Default UoM %s is not possible as they both belong to different Category!.') % (from_unit.name,to_unit.name,))
|
||||
else:
|
||||
return qty
|
||||
amount = qty / from_unit.factor
|
||||
|
|
Loading…
Reference in New Issue