This reverts commit 4cb0d66548.
4cb0d66548
@ -59,5 +59,4 @@ class res_groups(models.Model):
def action_evaluate(self):
res_users = self.env['res.users']
for user in res_users.search([]):
res_users.sudo(user=user.id).update_dynamic_groups(
user.id, self.env.cr.dbname)
res_users.update_dynamic_groups(user.id, self.env.cr.dbname)