Browse Source

Update res_groups.py

pull/13/head
Mathias Markl 6 years ago
committed by GitHub
parent
commit
c46eb91926
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      muk_utils/models/res_groups.py

2
muk_utils/models/res_groups.py

@ -62,7 +62,7 @@ class ResGroups(models.Model):
model = self.env[model_name].sudo()
if not model._abstract:
model_recs[model_name] = model.search([['groups', 'in', self.mapped('id')]])
result = super(ResGroups, self).unlink(vals)
result = super(ResGroups, self).unlink()
for tuple in model_recs.items():
tuple[1].trigger_computation(['users'])
return result
Loading…
Cancel
Save