Prevent to compare with None on searching quantity
issue11047 review387481002 (grafted from 4454b5d28be92099d0faf50c2b825557f5cafa75) --HG-- branch : 6.0
This commit is contained in:
@@ -158,7 +158,8 @@ class StockMixin(object):
|
||||
}.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])
|
||||
|
||||
Reference in New Issue
Block a user