From 0e6a7c6f4b893f79768ceef433dddb6c4270d7ee Mon Sep 17 00:00:00 2001 From: onurugur Date: Fri, 14 Jun 2024 15:39:58 +0300 Subject: [PATCH] migration 17 --- attribute_set/models/attribute_attribute.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attribute_set/models/attribute_attribute.py b/attribute_set/models/attribute_attribute.py index 4ce5c36a..2e1789e1 100644 --- a/attribute_set/models/attribute_attribute.py +++ b/attribute_set/models/attribute_attribute.py @@ -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(".", "_")