From 717e4106adc25572d6975a65c39762c3074a4b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Tue, 29 Apr 2014 12:19:32 +0200 Subject: [PATCH 01/18] [FIX] product: backport of 0059d7b, avoid rounding 0 for kg The precision 'Product Unit of Measure' was defined after the declaration of kg. Since fc85a7ee, the precision of kg is set in data to 0.001. As the Product Unit of Measure was not defined yet, the rounding was stripped to (16,2) precision, so getting a rounding of 0.0 for the kg unit of measure. [FIX] product: the declaration of decimal precision was done after the declaration of uom precision, preventing uom precision from going above the default decimal precision. + made the Kg unit precise up to grams by default. --- addons/product/product_data.xml | 53 ++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/addons/product/product_data.xml b/addons/product/product_data.xml index 4e62e1e0b3f..15d53f4da25 100644 --- a/addons/product/product_data.xml +++ b/addons/product/product_data.xml @@ -28,6 +28,35 @@ Volume + + + + Product Price + 2 + + + Discount + 2 + + + Account + 2 + + + Stock Weight + 2 + + + Product Unit of Measure + + + + Product UoS + + + @@ -162,30 +191,6 @@ parameter) will see those record just disappear. - - Product Price - 2 - - - Discount - 2 - - - Account - 2 - - - Stock Weight - 2 - - - Product Unit of Measure - - - - Product UoS - -