mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
@@ -7,8 +7,9 @@ class ProductTemplate(models.Model):
|
|||||||
|
|
||||||
def write(self, vals):
|
def write(self, vals):
|
||||||
res = super(ProductTemplate, self).write(vals)
|
res = super(ProductTemplate, self).write(vals)
|
||||||
self.check_product_with_component_change_allowed()
|
for product in self:
|
||||||
self.check_component_change_allowed()
|
product.check_product_with_component_change_allowed()
|
||||||
|
product.check_component_change_allowed()
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def check_product_with_component_change_allowed(self):
|
def check_product_with_component_change_allowed(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user