Skip to content

Commit

Permalink
setup web.base.url.freeze (TA#6960) (#96) (#97)
Browse files Browse the repository at this point in the history
* setup web.base.url.freeze (TA#6960)

* add test
  • Loading branch information
foutoucour authored and majouda committed Feb 12, 2024
1 parent 2e25230 commit 92112e8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/numitech/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -16,6 +15,7 @@
],
'data': [
'data/db_backup.xml',
'data/ir_config_parameter.xml',
],
'installable': True,
}
10 changes: 10 additions & 0 deletions addons/numitech/data/ir_config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!--TA#6960-->
<record id="web_base_url_freeze" model="ir.config_parameter">
<field name="key">web.base.url.freeze</field>
<field name="value">True</field>
</record>
</data>
</odoo>
1 change: 1 addition & 0 deletions addons/numitech/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import test_installed_modules
from . import test_config
9 changes: 9 additions & 0 deletions addons/numitech/tests/test_config.py
Original file line number Diff line number Diff line change
@@ -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'))

0 comments on commit 92112e8

Please sign in to comment.