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:]),