diff --git a/mrp_bom_attribute_match/models/product.py b/mrp_bom_attribute_match/models/product.py index b9b0cc4c5..c4f1daf41 100644 --- a/mrp_bom_attribute_match/models/product.py +++ b/mrp_bom_attribute_match/models/product.py @@ -7,8 +7,9 @@ class ProductTemplate(models.Model): def write(self, vals): res = super(ProductTemplate, self).write(vals) - self.check_product_with_component_change_allowed() - self.check_component_change_allowed() + for product in self: + product.check_product_with_component_change_allowed() + product.check_component_change_allowed() return res def check_product_with_component_change_allowed(self):