From 254f5a1ef6af1a495f84a680df9c1020a78093cc Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 4 Mar 2015 17:04:42 +0100 Subject: [PATCH] [FIX] browse and search groups with superuser permissions --- auth_dynamic_groups/model/res_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth_dynamic_groups/model/res_users.py b/auth_dynamic_groups/model/res_users.py index fa6381167..bb875e152 100644 --- a/auth_dynamic_groups/model/res_users.py +++ b/auth_dynamic_groups/model/res_users.py @@ -46,8 +46,8 @@ class res_users(Model): if dynamic_group.eval_dynamic_group_condition() else (3, dynamic_group.id) for dynamic_group in groups_obj.browse( - cr, uid, - groups_obj.search(cr, uid, + cr, SUPERUSER_ID, + groups_obj.search(cr, SUPERUSER_ID, [('is_dynamic', '=', True)])) ], })