[MIG] server_environment_data_encryption to 13.0
This commit is contained in:
parent
38dc2cacff
commit
e4b228a609
|
|
@ -9,7 +9,9 @@ exclude: |
|
||||||
# Repos using Sphinx to generate docs don't need prettying
|
# Repos using Sphinx to generate docs don't need prettying
|
||||||
^docs/_templates/.*\.html$|
|
^docs/_templates/.*\.html$|
|
||||||
# You don't usually want a bot to modify your legal texts
|
# You don't usually want a bot to modify your legal texts
|
||||||
(LICENSE.*|COPYING.*)
|
(LICENSE.*|COPYING.*)|
|
||||||
|
# server_environment_data_encryption tests files
|
||||||
|
^server_environment_data_encryption/tests/fixtures/.*$
|
||||||
default_language_version:
|
default_language_version:
|
||||||
python: python3
|
python: python3
|
||||||
repos:
|
repos:
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from odoo.osv.orm import setup_modifiers
|
|
||||||
|
|
||||||
from odoo import _, api, models
|
from odoo import _, api, models
|
||||||
from odoo.exceptions import ValidationError
|
from odoo.exceptions import ValidationError
|
||||||
|
|
@ -106,7 +106,7 @@ class ServerEnvMixin(models.AbstractModel):
|
||||||
if field_name in env_fields:
|
if field_name in env_fields:
|
||||||
continue
|
continue
|
||||||
field.set("readonly", "1")
|
field.set("readonly", "1")
|
||||||
setup_modifiers(field, self.fields_get(field_name))
|
field.set("modifiers", json.dumps({"readonly": True}))
|
||||||
|
|
||||||
def _update_form_view_from_env(self, arch, view_type):
|
def _update_form_view_from_env(self, arch, view_type):
|
||||||
if view_type != "form":
|
if view_type != "form":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue