From 6b650cc7769258fe513eaf8781a953fc2b5e9118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 9 Oct 2024 10:08:21 +0200 Subject: [PATCH 1/2] [IMP] account_reconcile_oca: Remove warning (deprecated method, read display_name instead) WARNING devel py.warnings: /opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py:938: DeprecationWarning: Since 17.0, deprecated method, read display_name instead --- account_reconcile_oca/models/account_bank_statement_line.py | 2 +- 1 file changed, 1 insertion(+), 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 abba3e118d..f4d6b66e00 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -935,7 +935,7 @@ def _compute_exchange_rate( "original_exchange_line_id": line.id, "reference": "reconcile_auxiliary;%s" % reconcile_auxiliary_id, "id": False, - "account_id": account.name_get()[0], + "account_id": (account.id, account.display_name), "partner_id": False, "date": fields.Date.to_string(self.date), "name": self.payment_ref or self.name, From 99e8c46ecf66e4fee64c75181f77c803ef22cce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 9 Oct 2024 10:12:36 +0200 Subject: [PATCH 2/2] [IMP] account_reconcile_oca: Remove warning: Two fields have the same label: Manual In Currency. WARNING devel odoo.addons.base.models.ir_model: Two fields (manual_in_currency_id, manual_in_currency) of account.bank.statement.line() have the same label: Manual In Currency. [Modules: account_reconcile_oca and account_reconcile_oca] --- .../models/account_bank_statement_line.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index f4d6b66e00..3290718c3c 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -60,9 +60,15 @@ class AccountBankStatementLine(models.Model): "Percentage Analytic" ), ) - manual_in_currency = fields.Boolean(readonly=True, store=False, prefetch=False) + manual_in_currency = fields.Boolean( + readonly=True, store=False, prefetch=False, string="Manual In Currency?" + ) manual_in_currency_id = fields.Many2one( - "res.currency", readonly=True, store=False, prefetch=False + "res.currency", + readonly=True, + store=False, + prefetch=False, + string="Manual In Currency", ) manual_amount_in_currency = fields.Monetary( store=False,