From b8fc7417da1df609c584ef7841a3d94335030bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 30 Jun 2024 13:04:45 +0200 Subject: [PATCH] Included nested fields when searching invoice payments on move line Closes #13377 (grafted from c8737b0603235c15e1dd0429f14cea9a585eee3b) --HG-- branch : 6.0 --- modules/account_invoice/account.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/account_invoice/account.py b/modules/account_invoice/account.py index 340fbd9672..ecc98cbffc 100644 --- a/modules/account_invoice/account.py +++ b/modules/account_invoice/account.py @@ -289,8 +289,9 @@ class MoveLine(metaclass=PoolMeta): Invoice.add_payment_lines({Invoice(value): lines}) @classmethod - def search_invoice_payment(cls, name, domain): - return [('invoice_payments',) + tuple(domain[1:])] + def search_invoice_payment(cls, name, clause): + nested = clause[0][len(name):] + return [('invoice_payments' + nested, *clause[1:])] @property def product(self):