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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user