Skip to content

Commit

Permalink
[FIX] attribute_set: make option_ids many2many for database safety
Browse files Browse the repository at this point in the history
  • Loading branch information
kobros-tech committed Feb 23, 2025
1 parent edad924 commit c0d03db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions attribute_set/wizard/attribute_option_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class AttributeOptionWizard(models.TransientModel):
default=lambda self: self.env.context.get("attribute_id_view_ref", False),
ondelete="cascade",
)
option_ids = fields.One2many(
"attribute.option", "attribute_id", "Attribute Options"
option_ids = fields.Many2many(
"attribute.option",
string="Attribute Options",
)

def validate(self):
Expand Down

0 comments on commit c0d03db

Please sign in to comment.