From 948befbb34693f20ea971775fbebb8e1084c99d2 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 9 Mar 2015 12:21:32 +0100 Subject: [PATCH] [FIX] mrp: set decimal precsion on qty field for produce wizard In manufacturing bom lines, digits_compute is set to the precision 'Product Unit of Measure'. It should be the case as well in the produce wizard, otherwise you won't be able to change the quantity within this wizard to the according product quantity precision opw-629657 --- addons/mrp/wizard/mrp_product_produce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/wizard/mrp_product_produce.py b/addons/mrp/wizard/mrp_product_produce.py index f41bcec9c76..16dd8fd1390 100644 --- a/addons/mrp/wizard/mrp_product_produce.py +++ b/addons/mrp/wizard/mrp_product_produce.py @@ -29,7 +29,7 @@ class mrp_product_produce_line(osv.osv_memory): _columns = { 'product_id': fields.many2one('product.product', 'Product'), - 'product_qty': fields.float('Quantity (in default UoM)'), + 'product_qty': fields.float('Quantity (in default UoM)', digits_compute=dp.get_precision('Product Unit of Measure')), 'lot_id': fields.many2one('stock.production.lot', 'Lot'), 'produce_id': fields.many2one('mrp.product.produce'), 'track_production': fields.related('product_id', 'track_production', type='boolean'),