[FIX] res_config: don't jump to first root menu after applying changes, instead reload and stay on same configuration page
bzr revid: mat@openerp.com-20131025154657-fk7t72hl9cns2279
This commit is contained in:
parent
d524b95172
commit
57a78f3f97
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue