Merge PR #877 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-12-26 08:33:47 +00:00

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