summaryrefslogtreecommitdiff
path: root/addons/maintenance/tests
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-09-02 13:23:43 +0200
committerMartin Trigaux <mat@odoo.com>2016-09-02 16:14:26 +0200
commit11812b0b9e82b2b1b9041d8250ce01e7b4a5f7ee (patch)
tree25e21b589d2bf45d2fdd2d4c65d94a707b00cc45 /addons/maintenance/tests
parente5f05074f8110b3282c558b6108fdc88b41d7522 (diff)
[FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is created inside this module (typically menus and groups). While there is no technical reasons to do so but this may introduce issues: - these records will not be deleted during uninstall - if a language is loaded before the installation of the module, it won't be translated The uninstallation will only remove the records with an external id linked to this module (these would only be removed when removing base). Installing a language before the module will drop the translations not linked to an existing external id (as it can not be resolved). This commit correct all the external ids tagged as from base or other incorrect modules.
Diffstat (limited to 'addons/maintenance/tests')
-rw-r--r--addons/maintenance/tests/test_maintenance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/maintenance/tests/test_maintenance.py b/addons/maintenance/tests/test_maintenance.py
index 11aae3d6986..a9c55d95ffc 100644
--- a/addons/maintenance/tests/test_maintenance.py
+++ b/addons/maintenance/tests/test_maintenance.py
@@ -16,7 +16,7 @@ class TestEquipment(TransactionCase):
self.res_users = self.env['res.users']
self.main_company = self.env.ref('base.main_company')
res_user = self.env.ref('base.group_user')
- res_manager = self.env.ref('base.group_equipment_manager')
+ res_manager = self.env.ref('maintenance.group_equipment_manager')
self.user = self.res_users.create(dict(
name="Normal User/Employee",