diff --git a/trytond/ir/module/module.py b/trytond/ir/module/module.py index 07c290abd2..4990dca01e 100644 --- a/trytond/ir/module/module.py +++ b/trytond/ir/module/module.py @@ -653,10 +653,17 @@ class ModuleInstallUpgrade(Wizard): 'type': 'form', 'object': 'ir.module.module.install_upgrade.start', 'state': [ - ('config', 'Ok', 'tryton-ok', True), + ('menu', 'Ok', 'tryton-ok', True), ], }, }, + 'menu': { + 'result': { + 'type': 'action', + 'action': '_menu', + 'state': 'config', + }, + }, 'config': { 'result': { 'type': 'action', @@ -666,6 +673,19 @@ class ModuleInstallUpgrade(Wizard): }, } + def _menu(self, cursor, user, data, context=None): + model_data_obj = self.pool.get('ir.model.data') + act_window_obj = self.pool.get('ir.action.act_window') + model_data_ids = model_data_obj.search(cursor, user, [ + ('fs_id', '=', 'act_menu_tree'), + ('module', '=', 'ir'), + ('inherit', '=', False), + ], limit=1, context=context) + model_data = model_data_obj.browse(cursor, user, model_data_ids[0], + context=context) + res = act_window_obj.read(cursor, user, model_data.db_id, context=context) + return res + def _config(self, cursor, user, data, context=None): return { 'type': 'ir.action.wizard', diff --git a/trytond/ir/module/module.xml b/trytond/ir/module/module.xml index 4f334749e9..c6e7a89662 100644 --- a/trytond/ir/module/module.xml +++ b/trytond/ir/module/module.xml @@ -190,10 +190,6 @@
]]>