[14.0][FIX] mrp_bom_attribute_match: writing on multiple products

This commit is contained in:
ferran-73
2022-10-19 13:25:39 +02:00
parent cd8ff960c3
commit 1932c6976c

View File

@@ -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):