[MIG] server_environment: Migration to 17.0

This commit is contained in:
Marcos Oitaben 2023-11-13 09:14:11 +01:00
parent 1748ef0a01
commit 344d6a7582
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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",

View File

@ -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