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