mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[FIX] base_user_role: tests - include trans_implied_ids
The unlink tests miss to add `trans_implied_ids` which is accounted for when reseting the groups.
This commit is contained in:
@@ -105,7 +105,9 @@ class TestUserRole(TransactionCase):
|
||||
|
||||
def test_role_unlink(self):
|
||||
# Get role1 groups
|
||||
role1_group_ids = self.role1_id.implied_ids.ids
|
||||
role1_group_ids = (
|
||||
self.role1_id.implied_ids.ids + self.role1_id.trans_implied_ids.ids
|
||||
)
|
||||
role1_group_ids.append(self.role1_id.group_id.id)
|
||||
role1_group_ids = sorted(set(role1_group_ids))
|
||||
|
||||
@@ -129,7 +131,9 @@ class TestUserRole(TransactionCase):
|
||||
|
||||
def test_role_line_unlink(self):
|
||||
# Get role1 groups
|
||||
role1_group_ids = self.role1_id.implied_ids.ids
|
||||
role1_group_ids = (
|
||||
self.role1_id.implied_ids.ids + self.role1_id.trans_implied_ids.ids
|
||||
)
|
||||
role1_group_ids.append(self.role1_id.group_id.id)
|
||||
role1_group_ids = sorted(set(role1_group_ids))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user