projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d1ad030
)
[IMP] res_config: better scope dont_skip_todo
author
Xavier Morel
<xmo@openerp.com>
Mon, 8 Nov 2010 10:41:28 +0000
(11:41 +0100)
committer
Xavier Morel
<xmo@openerp.com>
Mon, 8 Nov 2010 10:41:28 +0000
(11:41 +0100)
bzr revid: xmo@openerp.com-
20101108104128
-bew5ri7jpxbydp34
bin/addons/base/res/res_config.py
patch
|
blob
|
history
diff --git
a/bin/addons/base/res/res_config.py
b/bin/addons/base/res/res_config.py
index
58944a6
..
f4aee87
100644
(file)
--- 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())