From 5033a532c8f0bbbb13dd46edb1f53a12d3677536 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Mon, 31 Jan 2022 11:25:36 +0000 Subject: [PATCH] [FIX] account: fix labelling on payment's partner_bank_id In the for view of account.payment, when creating an inbound one, the partner_bank_id field was always labeled either "Customer Bank Account" or "Vendor Bank Account". This was wrong, as this field contains the bank accounts receiving the payment, so in case of an inbound operation, it's the company account. We hence add a third possible label for it in that case. closes odoo/odoo#83974 X-original-commit: c55f2e6aa88d01bc4f26bee7c6303f53e5bb8e48 Signed-off-by: Laurent Smet Signed-off-by: Olivier Colson --- addons/account/i18n/account.pot | 5 +++++ addons/account/views/account_payment_view.xml | 15 +++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 4e3608fad07..1e5db2533bb 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -3620,6 +3620,11 @@ msgstr "" msgid "Company" msgstr "" +#. module: account +#: model_terms:ir.ui.view,arch_db:account.view_account_payment_form +msgid "Company Bank Account" +msgstr "" + #. module: account #: model:ir.model.fields,field_description:account.field_account_fiscal_position__company_country_id msgid "Company Country" diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 2de290d62d9..3cf95b6b562 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -269,17 +269,24 @@ + + +