From ba43703cd9a336d3476245ee1f46e4a6b5b8b20b Mon Sep 17 00:00:00 2001 From: Christopher Ormaza Date: Thu, 23 Feb 2023 11:48:12 -0500 Subject: [PATCH] fix: search in display_name default name_search res.partner --- account_payment_line_import/models/account_payment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_payment_line_import/models/account_payment.py b/account_payment_line_import/models/account_payment.py index a7264b01adb6..a4e06b3441f7 100644 --- a/account_payment_line_import/models/account_payment.py +++ b/account_payment_line_import/models/account_payment.py @@ -31,14 +31,14 @@ def load(self, fields, data): invoice_id = int(line[2]) invoice = account_move.browse(invoice_id) line[2] = invoice.name - line.append(invoice.partner_id.name) + line.append(invoice.partner_id.display_name) # Account if len(line[4]) == 0: if current_payment.destination_account_id: line[4] = current_payment.destination_account_id.code # If partner not on invoice search by ID if len(line) != len(fields): - line.append(current_partner.name) + line.append(current_partner.display_name) new_data.append(line) data = new_data return super().load(fields, data)