[FIX]: product: Fixed precision of conversation ratio(factor)

lp bug: https://launchpad.net/bugs/511193 fixed

bzr revid: rpa@tinyerp.com-20101103133330-scgkvp2khxbsscec
This commit is contained in:
rpa (Open ERP) 2010-11-03 19:03:30 +05:30
parent 95124a4a3f
commit 36c6bbfe6f
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class product_uom(osv.osv):
'name': fields.char('Name', size=64, required=True, translate=True),
'category_id': fields.many2one('product.uom.categ', 'UoM Category', required=True, ondelete='cascade',
help="Quantity conversions may happen automatically between Units of Measure in the same category, according to their respective ratios."),
'factor': fields.float('Ratio', required=True,digits=(12, 6),
'factor': fields.float('Ratio', required=True,digits=(12, 12),
help='How many times this UoM is smaller than the reference UoM in this category:\n'\
'1 * (reference unit) = ratio * (this unit)'),
'factor_inv': fields.function(_factor_inv, digits_compute=dp.get_precision('Product UoM'),