[FIX] web_m2x_options_manager: writing mode when create/edit wizard is false

pull/3149/head
daniel-chionne 2025-04-09 16:41:59 +02:00
parent 38a39f5b1d
commit 453154c25c
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