changeset 71e9a683c444 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=71e9a683c444
description:
        Wizard must return a record when the active_id is zero

        0 is a valid id for a record.

        issue9885
        review318921006
diffstat:

 trytond/wizard/wizard.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3680f0f283d2 -r 71e9a683c444 trytond/wizard/wizard.py
--- a/trytond/wizard/wizard.py  Sun Nov 29 11:35:29 2020 +0000
+++ b/trytond/wizard/wizard.py  Fri Dec 04 18:40:26 2020 +0100
@@ -384,7 +384,7 @@
     @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

Reply via email to