From 6d4b00403ff0486df370ce90fde656c03cfefc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 4 Dec 2020 18:40:26 +0100 Subject: [PATCH] Wizard must return a record when the active_id is zero 0 is a valid id for a record. issue9885 review318921006 --- trytond/wizard/wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/wizard/wizard.py b/trytond/wizard/wizard.py index 53ef987e98..e73f813578 100644 --- a/trytond/wizard/wizard.py +++ b/trytond/wizard/wizard.py @@ -384,7 +384,7 @@ class Wizard(URLMixin, PoolBase): @cached_property def record(self): context = Transaction().context - if context.get('active_id'): + if context.get('active_id') is not None: return self.model(context['active_id']) @cached_property