changeset d82fc633b846 in modules/stock:5.0 details: https://hg.tryton.org/modules/stock?cmd=changeset&node=d82fc633b846 description: Prevent to compare with None on searching quantity
issue11047 review387481002 (grafted from 4454b5d28be92099d0faf50c2b825557f5cafa75) diffstat: move.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 92a1efa739ea -r d82fc633b846 move.py --- a/move.py Fri Nov 05 00:09:00 2021 +0100 +++ b/move.py Sat Dec 18 01:38:39 2021 +0100 @@ -142,7 +142,8 @@ }.get(operator_, lambda v, l: False) record_ids = [] for key, quantity in pbl.items(): - if operator_(quantity, operand): + if (quantity is not None and operand is not None + and operator_(quantity, operand)): # pbl could return None in some keys if key[position] is not None: record_ids.append(key[position])