|
@ -52,7 +52,7 @@ class ResUsersRole(models.Model): |
|
|
def unlink(self): |
|
|
def unlink(self): |
|
|
users = self.mapped('user_ids') |
|
|
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(force=True) |
|
|
return res |
|
|
return res |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
@ -99,5 +99,5 @@ class ResUsersRoleLine(models.Model): |
|
|
def unlink(self): |
|
|
def unlink(self): |
|
|
users = self.mapped('user_id') |
|
|
users = self.mapped('user_id') |
|
|
res = super(ResUsersRoleLine, self).unlink() |
|
|
res = super(ResUsersRoleLine, self).unlink() |
|
|
users.set_groups_from_roles() |
|
|
|
|
|
|
|
|
users.set_groups_from_roles(force=True) |
|
|
return res |
|
|
return res |