From a846db1e2e738eb5cde927d467fe5a9fe2b6e5bb Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Tue, 6 Jul 2010 12:33:06 +0530 Subject: [PATCH] [IMP]:help getting bzr revid: nch@tinyerp.com-20100706070306-fv39hzi2ov43w6fv --- bin/addons/base/ir/ir_actions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/addons/base/ir/ir_actions.py b/bin/addons/base/ir/ir_actions.py index a6354f339f2..a5dfb25d666 100644 --- a/bin/addons/base/ir/ir_actions.py +++ b/bin/addons/base/ir/ir_actions.py @@ -223,6 +223,13 @@ class act_window(osv.osv): return res def _get_help_status(self, cr, uid, ids, name, arg, context={}): +# cr.execute('select uid from ir_act_window_user_rel where act_id=ANY(%s)',(ids,)) +# user_ids = map(lambda x:x[0],cr.fetchall()) +# res = {} +# for action in ids: +# res[action] = True +# if uid in user_ids: +# res[action] = False res = {} for action in self.browse(cr, uid, ids): res[action.id] = True