From 712304c7ca1950deb1615fa3032d55e7ce152dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 18 Mar 2012 16:36:28 +0100 Subject: [PATCH] Add missing definition of state in __init__ If an exception happens before state is set it is not possible to close the wizard. --- tryton/gui/window/wizard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index d7630525bb..1a43238e5f 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -38,6 +38,7 @@ class Wizard(object): self.end_state = None self.screen = None self.screen_state = None + self.state = None def run(self, action, data, direct_print=False, email_print=False, email=None, context=None):