[IMP] module: simplify code to reload client
bzr revid: rco@openerp.com-20120515141223-hflk9cd3acs4pbc0
This commit is contained in:
parent
46ef00e3c7
commit
0b553b45ed
|
@ -352,14 +352,12 @@ class module(osv.osv):
|
|||
return config
|
||||
|
||||
# reload the client
|
||||
action = {
|
||||
menu_ids = self.root_menus(cr,uid,ids,context)
|
||||
return {
|
||||
'type': 'ir.actions.client',
|
||||
'tag': 'reload',
|
||||
'params': {'menu_id': menu_ids and menu_ids[0] or False},
|
||||
}
|
||||
menu_ids = self.root_menus(cr,uid,ids,context)
|
||||
if menu_ids:
|
||||
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