[MIG] server_environment_ir_config_parameter: Migration to 17.0

This commit is contained in:
Marcos Oitaben 2023-11-13 09:52:34 +01:00
parent 688ad644a2
commit 0c4000167d
3 changed files with 7 additions and 11 deletions

View File

@ -5,7 +5,7 @@
"name": "Server Environment Ir Config Parameter",
"summary": """
Override System Parameters from server environment file""",
"version": "16.0.1.1.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-env",

View File

@ -1,9 +1,9 @@
# Copyright 2016-2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from os import path
from odoo.exceptions import UserError
from odoo.modules.module import get_resource_path
from odoo.tools import convert_file
from odoo.tools import convert_file, file_path
from odoo.addons.server_environment.tests.common import ServerEnvironmentCase
@ -28,9 +28,9 @@ class TestEnv(ServerEnvironmentCase):
def _load_xml(self, module, filepath):
convert_file(
self.env.cr,
self.env,
module,
get_resource_path(module, filepath),
path.join(file_path(module), filepath),
{},
mode="init",
noupdate=False,

View File

@ -24,14 +24,10 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="is_environment" />
</field>
<field name="key" position="attributes">
<attribute
name="attrs"
>{'readonly': [('is_environment', '=', True)]}</attribute>
<attribute name="readonly">'is_environment'</attribute>
</field>
<field name="value" position="attributes">
<attribute
name="attrs"
>{'readonly': [('is_environment', '=', True)]}</attribute>
<attribute name="readonly">'is_environment'</attribute>
</field>
</field>
</record>