Rucha (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-server/trunk-configuration-rework-action-context-rpa 
into lp:~openerp-dev/openobject-server/trunk-configuration-rework.

Requested reviews:
  qdp (OpenERP) (qdp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-configuration-rework-action-context-rpa/+merge/66422

Improvements for: When opening config wizards from "Add More Features", context 
was not evaluated and passed properly
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-configuration-rework-action-context-rpa/+merge/66422
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-configuration-rework.
=== modified file 'openerp/addons/base/res/res_config.py'
--- openerp/addons/base/res/res_config.py	2011-04-27 09:04:15 +0000
+++ openerp/addons/base/res/res_config.py	2011-06-30 09:22:59 +0000
@@ -106,22 +106,12 @@
         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)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to