From 1f51fbda389d7c41edbf491c63c017923760848c Mon Sep 17 00:00:00 2001 From: "Rucha (Open ERP)" Date: Thu, 30 Jun 2011 14:49:27 +0530 Subject: [PATCH] [IMP]: res.config: Improvements for: When opening config wizards from "Add More Features", context was not evaluated and passed properly bzr revid: rpa@tinyerp.com-20110630091927-683qlipmaqtmf5nn --- openerp/addons/base/res/res_config.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/openerp/addons/base/res/res_config.py b/openerp/addons/base/res/res_config.py index efd1fc9ea17..30f06e4c17b 100644 --- a/openerp/addons/base/res/res_config.py +++ b/openerp/addons/base/res/res_config.py @@ -106,22 +106,12 @@ class res_config_configurable(osv.osv_memory): next = self._next_action(cr, uid) self.__logger.info('next action is %s', next) if next: - action = next.action_id - return { - 'view_mode': action.view_mode, - 'view_type': action.view_type, - 'view_id': action.view_id and [action.view_id.id] or False, - 'res_model': action.res_model, - 'type': action.type, - 'target': action.target, - } + return next.action_launch(context=context) self.__logger.info('all configuration actions have been executed') - current_user_menu = self.pool.get('res.users')\ - .browse(cr, uid, uid).menu_id + 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) + return self.pool.get(current_user_menu.type).read(cr, uid, current_user_menu.id) def start(self, cr, uid, ids, context=None): ids2 = self.pool.get('ir.actions.todo').search(cr, uid, [], context=context)