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