[IMP]:syntax repr

bzr revid: nch@tinyerp.com-20100706114332-85ex6g6oil99c90u
This commit is contained in:
nch@tinyerp.com
2010-07-06 17:13:32 +05:30
parent c4cddcd400
commit 9f934045f3
+4 -4
View File
@@ -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())