From e8dee468ca189e8a9ff99daf32e5bffe39ee2395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 20 Feb 2025 09:39:53 +0100 Subject: [PATCH] [FIX] account_reconcile_oca: Replace name_get() to delete the warning log WARNING prod py.warnings: /opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py:616: DeprecationWarning: Since 17.0, deprecated method, read display_name instead --- account_reconcile_oca/models/account_bank_statement_line.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index ffb78029..c8285a0a 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -613,7 +613,10 @@ class AccountBankStatementLine(models.Model): self.env["res.partner"].browse(line["partner_id"]).display_name, ) elif self.partner_id: - new_line["partner_id"] = self.partner_id.name_get()[0] + new_line["partner_id"] = ( + self.partner_id.id, + self.partner_id.display_name, + ) new_data.append(new_line) return new_data, reconcile_auxiliary_id