From 03b399bddca9362bb54ac09b3f72465aebf79b9b Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 4 Jun 2015 16:41:05 +0200 Subject: [PATCH] Revert "[FIX] when evaluating the dynamic group, sudo to the user" This reverts commit 4cb0d66548925693cb8f7a06546d8b9522a2e603. --- auth_dynamic_groups/model/res_groups.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auth_dynamic_groups/model/res_groups.py b/auth_dynamic_groups/model/res_groups.py index aefec6961..7acb8fb4e 100644 --- a/auth_dynamic_groups/model/res_groups.py +++ b/auth_dynamic_groups/model/res_groups.py @@ -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)