diff --git a/mrp_bom_attribute_match/models/mrp_bom.py b/mrp_bom_attribute_match/models/mrp_bom.py index e3552e166..fd61a62a2 100644 --- a/mrp_bom_attribute_match/models/mrp_bom.py +++ b/mrp_bom_attribute_match/models/mrp_bom.py @@ -200,7 +200,8 @@ class MrpBom(models.Model): ) if component_template_product: # need to set product_id temporary - current_line.product_id = component_template_product + if current_line.product_id != component_template_product: + current_line.product_id = component_template_product else: # component_template_id is set, but no attribute value match. continue