changeset 1de89b5bb246 in modules/account:6.4 details: https://hg.tryton.org/modules/account?cmd=changeset&node=1de89b5bb246 description: Do not compare debit or credit to None when searching
issue11568 review417441003 (grafted from 6d06c13574dddb21e36970afd27ea674ddaf4de6) diffstat: account.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 0da16af7d520 -r 1de89b5bb246 account.py --- a/account.py Fri Jun 03 19:38:58 2022 +0200 +++ b/account.py Fri Jun 24 09:19:13 2022 +0200 @@ -1952,7 +1952,7 @@ break ids = [a.id for a in accounts - if operator_(getattr(a, fname), operand)] + if operand is not None and operator_(getattr(a, fname), operand)] return [('id', 'in', ids)] @classmethod @@ -2000,7 +2000,7 @@ }.get(operator_, lambda v, l: False) ids = [a.id for a in accounts - if operator_(getattr(a, name), operand)] + if operand is not None and operator_(getattr(a, name), operand)] return [('id', 'in', ids)] def get_currency(self, name):