From 1932c6976cd4199c5396e58b413b7029da8b9d20 Mon Sep 17 00:00:00 2001 From: ferran-73 Date: Wed, 19 Oct 2022 13:25:39 +0200 Subject: [PATCH] [14.0][FIX] mrp_bom_attribute_match: writing on multiple products --- mrp_bom_attribute_match/models/product.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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):