From d93aa372fd068ca19d41f4c3e46a357a5eef9c49 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 16 Dec 2009 14:33:35 +0100 Subject: [PATCH] =?UTF-8?q?[imp]=20when=20configuration=20is=20done,=20swi?= =?UTF-8?q?tch=20to=20current=20user=20menu=20view=20instead=20of=20closin?= =?UTF-8?q?g=20current=20window=E2=80=A6=20maybe=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bzr revid: xmo@tinyerp.com-20091216133335-a33n1jobttujuq53 --- bin/addons/base/res/res_config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/addons/base/res/res_config.py b/bin/addons/base/res/res_config.py index 68d24866a93..5bb0c555b3b 100644 --- a/bin/addons/base/res/res_config.py +++ b/bin/addons/base/res/res_config.py @@ -83,7 +83,12 @@ class res_config_configurable(osv.osv_memory): self.logger.notifyChannel( 'actions', netsvc.LOG_INFO, 'all configuration actions have been executed') - return {'type': 'ir.actions.act_window_close'} + + current_user_menu = self.pool.get('res.users')\ + .browse(cr, uid, uid).menu_id + # return the action associated with the menu + return self.pool.get(current_user_menu.type)\ + .read(cr, uid, current_user_menu.id) def next(self, cr, uid, ids, context=None): return self._next(cr, uid)