Skip to content

Commit

Permalink
migration 17
Browse files Browse the repository at this point in the history
  • Loading branch information
onurugur committed Jun 14, 2024
1 parent 04bab5a commit 0e6a7c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion attribute_set/models/attribute_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ def create(self, vals_list):
# to avoid creating the same default relation_table name for any attribute
# linked to the same attribute.option or relation_model_id's model.
if not vals.get("serialized"):
att_model_id = self.env["ir.model"].browse(vals["model_id"])
att_model_id = self.env["ir.model"].browse(
vals["model_id"])
table_name = (
"x_"
+ att_model_id.model.replace(".", "_")
Expand Down

0 comments on commit 0e6a7c6

Please sign in to comment.