From c62f997d23aaf9b98f80a10058f22c88a6317458 Mon Sep 17 00:00:00 2001 From: andrea Date: Mon, 19 Aug 2024 10:48:07 +0200 Subject: [PATCH] [MIG] mrp_lot_number_propagation: review --- mrp_lot_number_propagation/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_lot_number_propagation/models/mrp_production.py b/mrp_lot_number_propagation/models/mrp_production.py index e1e0fdf74a9..5beeda3f3b0 100644 --- a/mrp_lot_number_propagation/models/mrp_production.py +++ b/mrp_lot_number_propagation/models/mrp_production.py @@ -133,7 +133,7 @@ def write(self, vals): for order in self: if ( order.is_lot_number_propagated - and "lot_producing_id" in vals + and vals.get("lot_producing_id") and not self.env.context.get("lot_propagation") ): raise UserError(