From bde7060598105f2db6b1a4729a0f283af2b43600 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 8 Nov 2010 11:41:28 +0100 Subject: [PATCH] [IMP] res_config: better scope dont_skip_todo bzr revid: xmo@openerp.com-20101108104128-bew5ri7jpxbydp34 --- bin/addons/base/res/res_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/res/res_config.py b/bin/addons/base/res/res_config.py index 58944a6..f4aee87 100644 --- a/bin/addons/base/res/res_config.py +++ b/bin/addons/base/res/res_config.py @@ -67,10 +67,10 @@ class res_config_configurable(osv.osv_memory): self.__logger.info('getting next %s', todos) active_todos = todos.search(cr, uid, [('state','=','open')], limit=1) - dont_skip_todo = True if active_todos: todo_obj = todos.browse(cr, uid, active_todos[0], context=None) todo_groups = map(lambda x:x.id, todo_obj.groups_id) + dont_skip_todo = True if todo_groups: cr.execute("select 1 from res_groups_users_rel where uid=%s and gid IN %s",(uid, tuple(todo_groups),)) dont_skip_todo = bool(cr.fetchone()) -- 1.7.10.4