[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:
ron@tinyerp.com 2011-02-11 18:32:00 +05:30
parent 9be8ea5995
commit bf880017ea
1 changed files with 1 additions and 1 deletions

View File

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