Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ofelix03 committed Oct 28, 2024
1 parent ec04cd0 commit 1548cd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bom_auto_create_components/models/bom_line.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from odoo import fields, models, api
from odoo import api, models


class MrpBomLine(models.Model):
Expand All @@ -12,9 +12,12 @@ def _onchange_set_apply_variant(self):
"product_attribute_value_id"
)
)
product_tmpl_att_values = self.bom_id.product_tmpl_id.valid_product_template_attribute_line_ids.mapped(
product_tmpl_att_lines = (
self.bom_id.product_tmpl_id.valid_product_template_attribute_line_id
)
product_tmpl_att_values = product_tmpl_att_lines.mapped(
"product_template_value_ids"
) # noqa
)
component_apply_att_values = product_tmpl_att_values.filtered(
lambda tmpl_att_value: tmpl_att_value.product_attribute_value_id.id
in component_att_values.ids
Expand Down

0 comments on commit 1548cd9

Please sign in to comment.