From c61395f922525814ff63d67270ecc12d4bbfeeb4 Mon Sep 17 00:00:00 2001 From: Alessio Renda Date: Mon, 18 Mar 2024 16:32:49 +0100 Subject: [PATCH] [FIX] mrp_bom_attribute_match: modify permission error --- mrp_bom_attribute_match/models/mrp_bom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_bom_attribute_match/models/mrp_bom.py b/mrp_bom_attribute_match/models/mrp_bom.py index ddec681b5..11992d995 100644 --- a/mrp_bom_attribute_match/models/mrp_bom.py +++ b/mrp_bom_attribute_match/models/mrp_bom.py @@ -260,7 +260,7 @@ class MrpBom(models.Model): ) if component_template_product: # need to set product_id temporary - current_line.product_id = component_template_product + current_line.sudo().product_id = component_template_product else: # component_template_id is set, but no attribute value match. continue