[IMP] module: use client action 'reload' when returning from module installation
bzr revid: rco@openerp.com-20120515140756-vhw0aw71fbv0p08b
This commit is contained in:
parent
b100b51bb9
commit
46ef00e3c7
|
@ -351,15 +351,15 @@ class module(osv.osv):
|
|||
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})
|
||||
|
|
Loading…
Reference in New Issue