From 036af9f47b0e54e0ee525184e3210c2c1909bfdb Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Tue, 18 Aug 2020 09:47:23 +0200 Subject: [PATCH] Do not add id_ to checked wizard ids if not set issue9491 review321961002 --- 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 bb6d401c20..53ef987e98 100644 --- a/trytond/wizard/wizard.py +++ b/trytond/wizard/wizard.py @@ -262,7 +262,7 @@ class Wizard(URLMixin, PoolBase): if model: ids = context.get('active_ids') or [] id_ = context.get('active_id') - if id_ not in ids: + if id_ not in ids and id_ is not None: ids.append(id_) # Check read access Model.read(ids, ['id'])