From a73b28ce96eac8b2c84ae49675bb8ee17a2a606c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Sat, 13 Apr 2024 17:42:02 +0200 Subject: [PATCH] Check for the existence of a screen before restoring size of wizard's dialog window Closes #12944 --- tryton/tryton/gui/window/wizard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/tryton/gui/window/wizard.py b/tryton/tryton/gui/window/wizard.py index fbd258d3ce..a23b4c7518 100644 --- a/tryton/tryton/gui/window/wizard.py +++ b/tryton/tryton/gui/window/wizard.py @@ -402,6 +402,8 @@ class WizardDialog(Wizard, NoModal): return True def show(self): + if not self.screen: + return view = self.screen.current_view if view.view_type == 'form': expand = False