[MIG] server_environment_data_encryption to 13.0
This commit is contained in:
parent
b8dd717307
commit
a687e84e3b
|
|
@ -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