Skip to content

Commit

Permalink
[FIX] product_configurator_mrp_component (Singleton Error)
Browse files Browse the repository at this point in the history
Travis failed due to singleton error while
  • Loading branch information
patrickrwilson committed May 6, 2022
1 parent a843569 commit ee3b1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions product_configurator_mrp_component/models/mrp_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit ee3b1bf

Please sign in to comment.