From: Josse Colpaert Date: Fri, 21 Nov 2014 14:19:53 +0000 (+0100) Subject: [IMP] Rounding of the UoM should have an unlimited precision X-Git-Url: http://git.inspyration.org/?p=odoo%2Fodoo.git;a=commitdiff_plain;h=910376a1574a55885e02c77b83619416d8005647 [IMP] Rounding of the UoM should have an unlimited precision --- diff --git a/addons/product/product.py b/addons/product/product.py index d05e6bf..2b70e1a 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -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."), diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index c9e26c5..7e8dcd2 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -610,7 +610,7 @@ - +