[FIX] res_config: don't jump to first root menu after applying changes, instead reloa...
authorMartin Trigaux <mat@openerp.com>
Fri, 25 Oct 2013 15:46:57 +0000 (17:46 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 25 Oct 2013 15:46:57 +0000 (17:46 +0200)
bzr revid: mat@openerp.com-20131025154657-fk7t72hl9cns2279

openerp/addons/base/res/res_config.py

index 861931b..a36c70d 100644 (file)
@@ -99,13 +99,10 @@ class res_config_configurable(osv.osv_memory):
             res = next.action_launch(context=context)
             res['nodestroy'] = False
             return res
-        # reload the client; open the first available root menu
-        menu_obj = self.pool.get('ir.ui.menu')
-        menu_ids = menu_obj.search(cr, uid, [('parent_id', '=', False)], context=context)
+
         return {
             'type': 'ir.actions.client',
             'tag': 'reload',
-            'params': {'menu_id': menu_ids and menu_ids[0] or False},
         }
 
     def start(self, cr, uid, ids, context=None):