Browse Source

[FIX] base_user_role: update users' groups when a role is deleted

pull/1066/head
sebalix 7 years ago
parent
commit
9d6feea45d
  1. 2
      base_user_role/models/role.py

2
base_user_role/models/role.py

@ -50,7 +50,7 @@ class ResUsersRole(models.Model):
@api.multi @api.multi
def unlink(self): def unlink(self):
users = self.mapped('user_id')
users = self.mapped('user_ids')
res = super(ResUsersRole, self).unlink() res = super(ResUsersRole, self).unlink()
users.set_groups_from_roles() users.set_groups_from_roles()
return res return res

Loading…
Cancel
Save