From 772ce291932f736d01afaf84bd8ce49bf1853ac1 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Thu, 3 May 2018 16:41:37 +0200 Subject: [PATCH] [FIX] mrp: product unit of measure precision in produce wizard The precision digit on the produce lines is not set to the product unit of measure one. That can lead to a lost of precision when a small values are set in the manufacturing order and not in the produce wizard. OPW-1838077 --- addons/mrp/wizard/mrp_product_produce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/wizard/mrp_product_produce.py b/addons/mrp/wizard/mrp_product_produce.py index d2ce72c3d48..d854e667822 100644 --- a/addons/mrp/wizard/mrp_product_produce.py +++ b/addons/mrp/wizard/mrp_product_produce.py @@ -177,9 +177,9 @@ class MrpProductProduceLine(models.TransientModel): product_produce_id = fields.Many2one('mrp.product.produce') product_id = fields.Many2one('product.product', 'Product') lot_id = fields.Many2one('stock.production.lot', 'Lot') - qty_to_consume = fields.Float('To Consume') + qty_to_consume = fields.Float('To Consume', digits=dp.get_precision('Product Unit of Measure')) product_uom_id = fields.Many2one('product.uom', 'Unit of Measure') - qty_done = fields.Float('Done') + qty_done = fields.Float('Done', digits=dp.get_precision('Product Unit of Measure')) move_id = fields.Many2one('stock.move') @api.onchange('lot_id')