Don't open menu after module installation
issue1936 review72002
This commit is contained in:
1 parent
20aad9992d
commit
91082b5f98
1 file changed
+1
-16
@@ -546,17 +546,10 @@ class ModuleInstallUpgrade(Wizard):
|
||||
'type': 'form',
|
||||
'object': 'ir.module.module.install_upgrade.start',
|
||||
'state': [
|
||||
('menu', 'Ok', 'tryton-ok', True),
|
||||
('config', 'Ok', 'tryton-ok', True),
|
||||
],
|
||||
},
|
||||
},
|
||||
'menu': {
|
||||
'result': {
|
||||
'type': 'action',
|
||||
'action': '_menu',
|
||||
'state': 'config',
|
||||
},
|
||||
},
|
||||
'config': {
|
||||
'result': {
|
||||
'type': 'action',
|
||||
@@ -566,14 +559,6 @@ class ModuleInstallUpgrade(Wizard):
|
||||
},
|
||||
}
|
||||
|
||||
def _menu(self, data):
|
||||
pool = Pool()
|
||||
model_data_obj = pool.get('ir.model.data')
|
||||
act_window_obj = pool.get('ir.action.act_window')
|
||||
act_window_id = model_data_obj.get_id('ir', 'act_menu_tree')
|
||||
res = act_window_obj.read(act_window_id)
|
||||
return res
|
||||
|
||||
def _config(self, data):
|
||||
return {
|
||||
'type': 'ir.action.wizard',
|
||||
|
||||
Reference in new issue
Block a user