From d5877be8920f592d8134ce95fb5fe15e4f0c7f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 20 Jan 2020 11:27:53 +0100 Subject: [PATCH] Include only bank account numbers when search for party If we search on bank account, this trigger an infinite loop because bank account search on bank which search back on party (introduced in changeset 1311ecee55f1). But indeed when searching for a party, at best it is the bank account number that is used not the bank or the currency. issue8991 review288861002 --- party.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/party.py b/party.py index a150969059..8adf348fe5 100644 --- a/party.py +++ b/party.py @@ -25,7 +25,8 @@ class Party(metaclass=PoolMeta): code_value = lstrip_wildcard(clause[2]) return [bool_op, domain, - ('bank_accounts', clause[1], code_value) + tuple(clause[3:]), + ('bank_accounts.numbers', + clause[1], code_value) + tuple(clause[3:]), ]