forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PORT] module_change_auto_install from 15.0 to 16.0
- Loading branch information
1 parent
8ce4e9b
commit 85750dc
Showing
6 changed files
with
140 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-10-13 13:04+0000\n" | ||
"PO-Revision-Date: 2022-10-13 13:04+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import test_module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2015-2017 Camptocamp SA | ||
# Copyright 2020 Onestein (<https://www.onestein.eu>) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo.tests.common import TransactionCase | ||
|
||
from odoo.addons.module_change_auto_install.patch import ( | ||
_get_modules_dict_auto_install_config, | ||
) | ||
|
||
# from ..models.base import disable_changeset | ||
|
||
|
||
class TestModule(TransactionCase): | ||
|
||
_EXPECTED_RESULTS = { | ||
"web_responsive": {"web_responsive": True}, | ||
"sale, purchase,": {"sale": True, "purchase": True}, | ||
"web_responsive:web,base_technical_features:," | ||
"point_of_sale:sale/purchase,account_usability": { | ||
"web_responsive": ["web"], | ||
"base_technical_features": [], | ||
"point_of_sale": ["sale", "purchase"], | ||
"account_usability": True, | ||
}, | ||
} | ||
|
||
def test_config_parsing(self): | ||
for k, v in self._EXPECTED_RESULTS.items(): | ||
self.assertEqual(_get_modules_dict_auto_install_config(k), v) |