diff --git a/addons/numitech/__manifest__.py b/addons/numitech/__manifest__.py index 4b349662..1de96954 100644 --- a/addons/numitech/__manifest__.py +++ b/addons/numitech/__manifest__.py @@ -1,10 +1,9 @@ -# -*- coding: utf-8 -*- # © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { 'name': 'Numitech', - 'version': '1.0.0', + 'version': '1.1.0', 'author': 'Numigi', 'maintainer': 'Numigi', 'license': 'LGPL-3', @@ -16,6 +15,7 @@ ], 'data': [ 'data/db_backup.xml', + 'data/ir_config_parameter.xml', ], 'installable': True, } diff --git a/addons/numitech/data/ir_config_parameter.xml b/addons/numitech/data/ir_config_parameter.xml new file mode 100644 index 00000000..41b3a9a8 --- /dev/null +++ b/addons/numitech/data/ir_config_parameter.xml @@ -0,0 +1,10 @@ + + + + + + web.base.url.freeze + True + + + diff --git a/addons/numitech/tests/__init__.py b/addons/numitech/tests/__init__.py index 6da6a150..24af8f51 100644 --- a/addons/numitech/tests/__init__.py +++ b/addons/numitech/tests/__init__.py @@ -1 +1,2 @@ from . import test_installed_modules +from . import test_config diff --git a/addons/numitech/tests/test_config.py b/addons/numitech/tests/test_config.py new file mode 100644 index 00000000..f178ef79 --- /dev/null +++ b/addons/numitech/tests/test_config.py @@ -0,0 +1,9 @@ + +from odoo.tests import TransactionCase + + +class TestConfig(TransactionCase): + + def test_web_base_url_freeze(self): + """ web.base.url.freeze is set.""" + self.assertTrue(self.env['ir.config_parameter'].sudo().get_param('web.base.url.freeze'))