[MIG] server_environment: Migration to 17.0
This commit is contained in:
parent
1748ef0a01
commit
344d6a7582
Binary file not shown.
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{
|
||||
"name": "server configuration environment files",
|
||||
"version": "16.0.1.0.3",
|
||||
"version": "17.0.1.0.0",
|
||||
"depends": ["base", "base_sparse_field"],
|
||||
"author": "Camptocamp,Odoo Community Association (OCA)",
|
||||
"summary": "move some configurations out of the database",
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ class ServerEnvMixin(models.AbstractModel):
|
|||
for elem in view_arch.findall(field_xpath % field):
|
||||
# set env-computed fields to readonly if the configuration
|
||||
# files have a key set for this field
|
||||
elem.set("attrs", str({"readonly": [(is_editable_field, "=", False)]}))
|
||||
elem.set("readonly", "not is_editable_field")
|
||||
if not view_arch.findall(field_xpath % is_editable_field):
|
||||
# add the _is_editable fields in the view for the 'attrs'
|
||||
# domain
|
||||
|
|
|
|||
Loading…
Reference in New Issue