From cab505aa849b6d23ddcd20302abfc3a895af7a88 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 (grafted from d582b659c4bc7fde91efcb84d067351552cfdd5c) --HG-- branch : 7.0 --- 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 bed85c0f50..f862c5f4df 100644 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -2356,7 +2356,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:]),