From 2231ba06c7339bbd6872d9426f37a370ff820e1b Mon Sep 17 00:00:00 2001 From: "mayur maheshwari (Open ERP)" Date: Mon, 13 Jun 2011 10:56:19 +0530 Subject: [PATCH] [FIX]product:putting a decimal_precision In weight and net weight Field lp bug: https://launchpad.net/bugs/794817 fixed bzr revid: mma@tinyerp.com-20110613052619-2m33jm50o2ux6sq3 --- addons/product/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index fa6796b3953..5c894a1fbe4 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -276,8 +276,8 @@ class product_template(osv.osv): 'list_price': fields.float('Sale Price', digits_compute=dp.get_precision('Sale Price'), help="Base price for computing the customer price. Sometimes called the catalog price."), 'standard_price': fields.float('Cost Price', required=True, digits_compute=dp.get_precision('Purchase Price'), help="Product's cost for accounting stock valuation. It is the base price for the supplier price."), 'volume': fields.float('Volume', help="The volume in m3."), - 'weight': fields.float('Gross weight', help="The gross weight in Kg."), - 'weight_net': fields.float('Net weight', help="The net weight in Kg."), + 'weight': fields.float('Gross weight', digits_compute=dp.get_precision('Stock Weight'), help="The gross weight in Kg."), + 'weight_net': fields.float('Net weight', digits_compute=dp.get_precision('Stock Weight'), help="The net weight in Kg."), 'cost_method': fields.selection([('standard','Standard Price'), ('average','Average Price')], 'Costing Method', required=True, help="Standard Price: the cost price is fixed and recomputed periodically (usually at the end of the year), Average Price: the cost price is recomputed at each reception of products."), 'warranty': fields.float('Warranty (months)'),