mirror of https://github.com/OCA/web.git
commit
d367369f0c
|
@ -151,7 +151,7 @@ class M2xCreateEditOption(models.Model):
|
||||||
node.set("options", str(options))
|
node.set("options", str(options))
|
||||||
if not self.option_create_edit_wizard:
|
if not self.option_create_edit_wizard:
|
||||||
node.set("can_create", "false")
|
node.set("can_create", "false")
|
||||||
node.set("can_write", "false")
|
node.set("can_write", "true")
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def get(self, model_name, field_name):
|
def get(self, model_name, field_name):
|
||||||
|
|
|
@ -118,7 +118,7 @@ class TestM2xCreateEditOption(SavepointCase):
|
||||||
company_node.attrib.get("can_create"),
|
company_node.attrib.get("can_create"),
|
||||||
company_node.attrib.get("can_write"),
|
company_node.attrib.get("can_write"),
|
||||||
),
|
),
|
||||||
("false", "false"),
|
("false", "true"),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Update options, check that node has been updated too
|
# Update options, check that node has been updated too
|
||||||
|
|
Loading…
Reference in New Issue