From b0ae3e4fa5e6117b17cce43d7d8e5ca1ae0a7998 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 (grafted from af40ac94803e01092fccbdc553cc772f251b9abd) --HG-- branch : 7.0 --- 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