From 0c4000167de7e1b4151f576348184732f6be66c6 Mon Sep 17 00:00:00 2001 From: Marcos Oitaben Date: Mon, 13 Nov 2023 09:52:34 +0100 Subject: [PATCH] [MIG] server_environment_ir_config_parameter: Migration to 17.0 --- server_environment_ir_config_parameter/__manifest__.py | 2 +- .../tests/test_server_environment_ircp.py | 8 ++++---- .../views/view_ir_config_parameter.xml | 8 ++------ 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/server_environment_ir_config_parameter/__manifest__.py b/server_environment_ir_config_parameter/__manifest__.py index 046b34e..839bd9d 100644 --- a/server_environment_ir_config_parameter/__manifest__.py +++ b/server_environment_ir_config_parameter/__manifest__.py @@ -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", diff --git a/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py b/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py index 867cea7..1e918aa 100644 --- a/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py +++ b/server_environment_ir_config_parameter/tests/test_server_environment_ircp.py @@ -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, diff --git a/server_environment_ir_config_parameter/views/view_ir_config_parameter.xml b/server_environment_ir_config_parameter/views/view_ir_config_parameter.xml index fdc6f96..ccc3bec 100644 --- a/server_environment_ir_config_parameter/views/view_ir_config_parameter.xml +++ b/server_environment_ir_config_parameter/views/view_ir_config_parameter.xml @@ -24,14 +24,10 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - {'readonly': [('is_environment', '=', True)]} + 'is_environment' - {'readonly': [('is_environment', '=', True)]} + 'is_environment'