Revert "[FIX] when evaluating the dynamic group, sudo to the user"
This reverts commit 4cb0d66548
.
pull/172/head
parent
4cb0d66548
commit
03b399bddc
|
@ -59,5 +59,4 @@ class res_groups(models.Model):
|
||||||
def action_evaluate(self):
|
def action_evaluate(self):
|
||||||
res_users = self.env['res.users']
|
res_users = self.env['res.users']
|
||||||
for user in res_users.search([]):
|
for user in res_users.search([]):
|
||||||
res_users.sudo(user=user.id).update_dynamic_groups(
|
res_users.update_dynamic_groups(user.id, self.env.cr.dbname)
|
||||||
user.id, self.env.cr.dbname)
|
|
||||||
|
|
Loading…
Reference in New Issue