[Fix] product: fix the factor digits

bzr revid: sbh@tinyerp.com-20100923060829-2c47ygg5iwyntjng
This commit is contained in:
sbh (Open ERP)
2010-09-23 11:38:29 +05:30
parent 209cac5d0d
commit c3508d6f84
+1 -1
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', digits_compute=dp.get_precision('Product UoM'), required=True,
'factor': fields.float('Ratio', required=True,digits=(12, 6),
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'),