|
@ -44,8 +44,9 @@ class ResUsers(models.Model): |
|
|
lambda rec: rec.is_enabled) |
|
|
lambda rec: rec.is_enabled) |
|
|
for role_line in role_lines: |
|
|
for role_line in role_lines: |
|
|
role = role_line.role_id |
|
|
role = role_line.role_id |
|
|
group_ids.append(role.group_id.id) |
|
|
|
|
|
group_ids.extend(role.implied_ids.ids) |
|
|
|
|
|
|
|
|
if role: |
|
|
|
|
|
group_ids.append(role.group_id.id) |
|
|
|
|
|
group_ids.extend(role.implied_ids.ids) |
|
|
group_ids = list(set(group_ids)) # Remove duplicates IDs |
|
|
group_ids = list(set(group_ids)) # Remove duplicates IDs |
|
|
vals = { |
|
|
vals = { |
|
|
'groups_id': [(6, 0, group_ids)], |
|
|
'groups_id': [(6, 0, group_ids)], |
|
|