From fcace41a1bc70ef803a02057c71e822dd6085c3d 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 --- 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 4231ebccd7..d925e3df1d 100644 --- a/modules/account_invoice/account.py +++ b/modules/account_invoice/account.py @@ -211,8 +211,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):