Merge PR #3149 into 14.0

Signed-off-by CarlosRoca13
14.0
OCA-git-bot 2025-04-14 09:37:51 +00:00
commit d367369f0c
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ class M2xCreateEditOption(models.Model):
node.set("options", str(options))
if not self.option_create_edit_wizard:
node.set("can_create", "false")
node.set("can_write", "false")
node.set("can_write", "true")
@api.model
def get(self, model_name, field_name):

View File

@ -118,7 +118,7 @@ class TestM2xCreateEditOption(SavepointCase):
company_node.attrib.get("can_create"),
company_node.attrib.get("can_write"),
),
("false", "false"),
("false", "true"),
)
# Update options, check that node has been updated too