Skip to content

Commit d367369

Browse files
committed
Merge PR #3149 into 14.0
Signed-off-by CarlosRoca13
2 parents 38a39f5 + 453154c commit d367369

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web_m2x_options_manager/models/m2x_create_edit_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _apply_options(self, node):
151151
node.set("options", str(options))
152152
if not self.option_create_edit_wizard:
153153
node.set("can_create", "false")
154-
node.set("can_write", "false")
154+
node.set("can_write", "true")
155155

156156
@api.model
157157
def get(self, model_name, field_name):

web_m2x_options_manager/tests/test_m2x_create_edit_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_apply_options(self):
118118
company_node.attrib.get("can_create"),
119119
company_node.attrib.get("can_write"),
120120
),
121-
("false", "false"),
121+
("false", "true"),
122122
)
123123

124124
# Update options, check that node has been updated too

0 commit comments

Comments
 (0)