diff --git a/web_m2x_options_manager/models/m2x_create_edit_option.py b/web_m2x_options_manager/models/m2x_create_edit_option.py index 29c4a7b56..0e5627526 100644 --- a/web_m2x_options_manager/models/m2x_create_edit_option.py +++ b/web_m2x_options_manager/models/m2x_create_edit_option.py @@ -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): diff --git a/web_m2x_options_manager/tests/test_m2x_create_edit_option.py b/web_m2x_options_manager/tests/test_m2x_create_edit_option.py index 27640df5b..4d5d1cad6 100644 --- a/web_m2x_options_manager/tests/test_m2x_create_edit_option.py +++ b/web_m2x_options_manager/tests/test_m2x_create_edit_option.py @@ -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