if config.get('type') not in ('ir.actions.reload', 'ir.actions.act_window_close'):
return config
+ # reload the client
+ action = {
+ 'type': 'ir.actions.client',
+ 'tag': 'reload',
+ }
menu_ids = self.root_menus(cr,uid,ids,context)
if menu_ids:
- action = {
- 'type': 'ir.ui.menu',
- 'menu_id': menu_ids[0],
- 'reload' : True,
- }
- return action
- return False
+ action['params'] = {'menu_id': menu_ids[0]}
+ return action
def button_install_cancel(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'state': 'uninstalled', 'demo':False})