[IMP] Rounding of the UoM should have an unlimited precision

This commit is contained in:
Josse Colpaert 2014-11-21 15:19:53 +01:00
parent 77f8732680
commit 910376a157
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class product_uom(osv.osv):
string='Bigger Ratio',
help='How many times this Unit of Measure is bigger than the reference Unit of Measure in this category:\n'\
'1 * (this unit) = ratio * (reference unit)', required=True),
'rounding': fields.float('Rounding Precision', digits_compute=dp.get_precision('Product Unit of Measure'), required=True,
'rounding': fields.float('Rounding Precision', digits=0, required=True,
help="The computed quantity will be a multiple of this value. "\
"Use 1.0 for a Unit of Measure that cannot be further split, such as a piece."),
'active': fields.boolean('Active', help="By unchecking the active field you can disable a unit of measure without deleting it."),

View File

@ -610,7 +610,7 @@
</group>
<group>
<field name="active"/>
<field name="rounding"/>
<field name="rounding" digits="[42, 5]"/>
</group>
</group>
</form>