From c82b81aa0cf4286d95562a3d449462d4e5bcf78b Mon Sep 17 00:00:00 2001 From: "hda@tinyerp.com" <> Date: Wed, 24 Sep 2008 11:34:32 +0530 Subject: [PATCH] change user action bzr revid: hda@tinyerp.com-20080924060432-pb1ln88r9x6k310p --- bin/addons/base/module/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index 30b154a1145..ca25c010ccc 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -681,8 +681,8 @@ class module_configuration(osv.osv_memory): 'target':item.action_id.target, } user_action=self.pool.get('res.users').browse(cr,uid,uid) - act_obj=self.pool.get(user_action.action_id.type) - action_ids=act_obj.search(cr,uid,[('name','=',user_action.action_id.name)]) + act_obj=self.pool.get(user_action.menu_id.type) + action_ids=act_obj.search(cr,uid,[('name','=',user_action.menu_id.name)]) action_open=act_obj.browse(cr,uid,action_ids)[0] if context.get('menu',False): return{