diff options
| author | Pierre Masereel <pim@odoo.com> | 2018-05-03 16:41:37 +0200 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2018-05-03 16:48:20 +0200 |
| commit | 772ce291932f736d01afaf84bd8ce49bf1853ac1 (patch) | |
| tree | 08c1d59e1371b849a9ea231bf78d38cdeccfa5d4 | |
| parent | 4102f38f15bd3a43b1ca4c9a67c63abe4869b16f (diff) | |
[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
| -rw-r--r-- | addons/mrp/wizard/mrp_product_produce.py | 4 |
1 files 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') |
