From 8d4b38b3398e5aedd89e032f7e8c7ace5e63d10d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20D=C3=ADaz=20Miralles?= Date: Tue, 12 Aug 2025 00:15:43 +0200 Subject: [PATCH] Include the period in the nested part when searching the invoice party of lines Closes #14125 --- modules/account_invoice/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index a4044cc9a9..dce39cdf67 100644 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -2457,7 +2457,7 @@ class InvoiceLine(sequence_ordered(), ModelSQL, ModelView, TaxableMixin): @classmethod def search_invoice_party(cls, name, clause): - nested = clause[0][len(name) + 1:] + nested = clause[0][len(name):] return ['OR', ('invoice.party' + nested, *clause[1:]), ('party' + nested, *clause[1:]),