From 3d1f0da70d1d4be91900f87a3bda411ce242011d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 29 Feb 2008 13:16:58 +0100 Subject: [PATCH] Run config wizard after module install --- trytond/ir/module/module.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/trytond/ir/module/module.py b/trytond/ir/module/module.py index 0e5e0f7665..cf19a5bbb6 100644 --- a/trytond/ir/module/module.py +++ b/trytond/ir/module/module.py @@ -679,10 +679,23 @@ class ModuleInstallUpgrade(Wizard): 'type': 'form', 'object': 'ir.module.module.install_upgrade.start', 'state': [ - ('end', 'Close', 'gtk-close', True), + ('config', 'Ok', 'gtk-ok', True), ], }, }, + 'config': { + 'result': { + 'type': 'action', + 'action': '_config', + 'state': 'end', + }, + }, } + def _config(self, cursor, user, data, context=None): + return { + 'type': 'ir.action.wizard', + 'wiz_name': 'ir.module.module.config_wizard', + } + ModuleInstallUpgrade()