Skip to content

Commit

Permalink
[MIG] server_environment: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moitabenfdz committed Nov 13, 2023
1 parent 1748ef0 commit 5462331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server_environment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion server_environment/models/server_env_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5462331

Please sign in to comment.