From ee3b1bf3c53a4b9178c589b70b3c8b01598d83bc Mon Sep 17 00:00:00 2001 From: Patrick Wilson <36892066+patrickrwilson@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:10:53 -0400 Subject: [PATCH] [FIX] product_configurator_mrp_component (Singleton Error) Travis failed due to singleton error while --- product_configurator_mrp_component/models/mrp_bom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product_configurator_mrp_component/models/mrp_bom.py b/product_configurator_mrp_component/models/mrp_bom.py index fa3984d445..e6eec7f781 100644 --- a/product_configurator_mrp_component/models/mrp_bom.py +++ b/product_configurator_mrp_component/models/mrp_bom.py @@ -19,8 +19,8 @@ class MRPBoM(models.Model): @api.depends("bom_line_config_ids", "product_tmpl_id") def _compute_available_config_components(self): """Compute list of products available for configurable components""" - if self.config_ok and not self.product_id: - for bom in self: + for bom in self: + if bom.config_ok and not bom.product_id: bom.available_config_components = False products = self.env["product.template"].search( [