Wizard must return a record when the active_id is zero

0 is a valid id for a record.

issue9885
review318921006
This commit is contained in:
Cédric Krier
2020-12-04 18:40:26 +01:00
parent 31a0ee2ec4
commit 6d4b00403f
+1 -1
View File
@@ -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