diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index 46c1877789..d7630525bb 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -348,9 +348,13 @@ class WizardDialog(Wizard, NoModal): if current_form: for dialog in current_form.dialogs: dialog.show() - if hasattr(self.page, 'screen'): - self.page.screen.reload(written=True) super(WizardDialog, self).destroy() + if self.page.dialogs: + dialog = self.page.dialogs[-1] + else: + dialog = self.page + if hasattr(dialog, 'screen'): + dialog.screen.reload(written=True) def end(self): super(WizardDialog, self).end()