From 91082b5f986f3a51e12bc70948b91d93283b9bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 24 Jul 2011 14:44:14 +0200 Subject: [PATCH] Don't open menu after module installation issue1936 review72002 --- trytond/ir/module/module.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/trytond/ir/module/module.py b/trytond/ir/module/module.py index 701a7a0834..40b385906f 100644 --- a/trytond/ir/module/module.py +++ b/trytond/ir/module/module.py @@ -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',