[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:
parent
95124a4a3f
commit
36c6bbfe6f
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue