From 54623315582b43ef9522505205393659befdd4aa Mon Sep 17 00:00:00 2001 From: Marcos Oitaben Date: Mon, 13 Nov 2023 09:14:11 +0100 Subject: [PATCH] [MIG] server_environment: Migration to 17.0 --- server_environment/__manifest__.py | 2 +- server_environment/models/server_env_mixin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server_environment/__manifest__.py b/server_environment/__manifest__.py index 64ed3472e..3ff732e40 100644 --- a/server_environment/__manifest__.py +++ b/server_environment/__manifest__.py @@ -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", diff --git a/server_environment/models/server_env_mixin.py b/server_environment/models/server_env_mixin.py index dba118b35..9f5405e23 100644 --- a/server_environment/models/server_env_mixin.py +++ b/server_environment/models/server_env_mixin.py @@ -313,7 +313,7 @@ def _server_env_view_set_readonly(self, view_arch): 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