[MIG] server_environment_ir_config_parameter: Migration to 17.0
This commit is contained in:
parent
688ad644a2
commit
0c4000167d
|
|
@ -5,7 +5,7 @@
|
||||||
"name": "Server Environment Ir Config Parameter",
|
"name": "Server Environment Ir Config Parameter",
|
||||||
"summary": """
|
"summary": """
|
||||||
Override System Parameters from server environment file""",
|
Override System Parameters from server environment file""",
|
||||||
"version": "16.0.1.1.0",
|
"version": "17.0.1.0.0",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/server-env",
|
"website": "https://github.com/OCA/server-env",
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# Copyright 2016-2018 ACSONE SA/NV
|
# Copyright 2016-2018 ACSONE SA/NV
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
from os import path
|
||||||
|
|
||||||
from odoo.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
from odoo.modules.module import get_resource_path
|
from odoo.tools import convert_file, file_path
|
||||||
from odoo.tools import convert_file
|
|
||||||
|
|
||||||
from odoo.addons.server_environment.tests.common import ServerEnvironmentCase
|
from odoo.addons.server_environment.tests.common import ServerEnvironmentCase
|
||||||
|
|
||||||
|
|
@ -28,9 +28,9 @@ class TestEnv(ServerEnvironmentCase):
|
||||||
|
|
||||||
def _load_xml(self, module, filepath):
|
def _load_xml(self, module, filepath):
|
||||||
convert_file(
|
convert_file(
|
||||||
self.env.cr,
|
self.env,
|
||||||
module,
|
module,
|
||||||
get_resource_path(module, filepath),
|
path.join(file_path(module), filepath),
|
||||||
{},
|
{},
|
||||||
mode="init",
|
mode="init",
|
||||||
noupdate=False,
|
noupdate=False,
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,10 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
<field name="is_environment" />
|
<field name="is_environment" />
|
||||||
</field>
|
</field>
|
||||||
<field name="key" position="attributes">
|
<field name="key" position="attributes">
|
||||||
<attribute
|
<attribute name="readonly">'is_environment'</attribute>
|
||||||
name="attrs"
|
|
||||||
>{'readonly': [('is_environment', '=', True)]}</attribute>
|
|
||||||
</field>
|
</field>
|
||||||
<field name="value" position="attributes">
|
<field name="value" position="attributes">
|
||||||
<attribute
|
<attribute name="readonly">'is_environment'</attribute>
|
||||||
name="attrs"
|
|
||||||
>{'readonly': [('is_environment', '=', True)]}</attribute>
|
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue