summaryrefslogtreecommitdiff
path: root/addons/project/tests
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2020-03-09 09:56:02 +0000
committerYannick Tivisse <yti@odoo.com>2020-03-10 13:44:20 +0000
commit900f0175dbd1fbb2f64c2003aac3d033002ece99 (patch)
treee08aead06e88b3820f37088211769bf4a7bd55e2 /addons/project/tests
parent65cded061fde6a39ae6aed0492f7562081ab85cb (diff)
[FIX] project: Allow multi company ir rule relaxion
If you want to de-activate the multi company ir.rule, those checks will still raise an error. Task 2198433 closes odoo/odoo#47291 X-original-commit: 12a81a3a5265cbd18f5c00ab439cd1486696521b Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com>
Diffstat (limited to 'addons/project/tests')
-rw-r--r--addons/project/tests/test_multicompany.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/addons/project/tests/test_multicompany.py b/addons/project/tests/test_multicompany.py
index 3c807ae3e29..5fc6b0187e2 100644
--- a/addons/project/tests/test_multicompany.py
+++ b/addons/project/tests/test_multicompany.py
@@ -286,14 +286,6 @@ class TestMultiCompanyProject(TestMultiCompanyCommon):
self.assertEqual(task.company_id, task.project_id.subtask_project_id.company_id, "The company of the orphan subtask should be the one from its project.")
self.assertEqual(self.task_1.child_ids.ids, [task.id])
- # trying to access the subtask in a company not allowed should raise an error
- with self.assertRaises(UserError):
- self.task_1.with_context(allowed_company_ids=[self.company_a.id]).action_subtask()
-
- # trying to access the parent task in a company not allowed should raise an error
- with self.assertRaises(UserError):
- task.with_context(allowed_company_ids=[self.company_b.id]).action_open_parent_task()
-
with self.sudo('employee-a'):
with self.assertRaises(AccessError):
with Form(task) as task_form: