diff options
| author | nch@tinyerp.com <> | 2010-07-06 17:13:32 +0530 |
|---|---|---|
| committer | nch@tinyerp.com <> | 2010-07-06 17:13:32 +0530 |
| commit | 9f934045f38d1f14bd5bda514b363b94bc0fea98 (patch) | |
| tree | 8edc4789b8b2706fcaf60d2b3eb6ba9dc6b0831c | |
| parent | c4cddcd400d7cb6c5231c8575caa25a39913d6d9 (diff) | |
[IMP]:syntax repr
bzr revid: nch@tinyerp.com-20100706114332-85ex6g6oil99c90u
| -rw-r--r-- | bin/addons/base/ir/ir_actions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/addons/base/ir/ir_actions.py b/bin/addons/base/ir/ir_actions.py index 2fecf0476b7..27d4f0ddc00 100644 --- a/bin/addons/base/ir/ir_actions.py +++ b/bin/addons/base/ir/ir_actions.py @@ -223,10 +223,10 @@ class act_window(osv.osv): return res def _get_help_status(self, cr, uid, ids, name, arg, context={}): - cr.execute(""" select action.id, - CASE WHEN r.uid is NULL THEN True ELSE False END - as help_status from ir_act_window action - LEFT JOIN ir_act_window_user_rel r on + cr.execute(""" SELECT action.id, + CASE WHEN r.uid IS NULL THEN True ELSE False END + AS help_status FROM ir_act_window action + LEFT JOIN ir_act_window_user_rel r ON (action.id = r.act_id AND (r.uid IS NULL or r.uid= %s)) WHERE action.id = ANY(%s)""",(uid,ids,)) return dict(cr.fetchall()) |
