From ff82b47cf978362b46e3b7cef474d0e617b45340 Mon Sep 17 00:00:00 2001 From: Quentin Dupont Date: Thu, 25 Jan 2024 11:44:53 +0100 Subject: [PATCH] [IMP] bom_line_net_qty precision --- mrp_bom_line_net_qty/models/mrp_bom_line.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mrp_bom_line_net_qty/models/mrp_bom_line.py b/mrp_bom_line_net_qty/models/mrp_bom_line.py index 4a368c2d..56d44d8e 100644 --- a/mrp_bom_line_net_qty/models/mrp_bom_line.py +++ b/mrp_bom_line_net_qty/models/mrp_bom_line.py @@ -14,10 +14,12 @@ class MrpBomLine(models.Model): line_gross_weight = fields.Float( string="Gross weight", compute="_compute_line_gross_weight", + digits=dp.get_precision("Product Unit of Measure"), ) line_net_weight = fields.Float( string="Net weight", compute="_compute_line_net_weight", + digits=dp.get_precision("Product Unit of Measure"), ) line_net_weight_percentage = fields.Float( string="Net weight %",