From 9cb4cbc27006750de72bb93f557173bbff7efc42 Mon Sep 17 00:00:00 2001 From: "Thomas Lefebvre (thle)" Date: Wed, 14 Sep 2022 05:57:05 +0000 Subject: [PATCH] [FIX] account: currency issue in payement receipt print Steps to reproduce: - install the "account" module (Invoicing app); - create an invoice; - make partial payments in other currencies, - print the payment receipt. Issues: The amount and the currency do not match. In addition, it is difficult to see the conversion between the payment currency and the invoice currency. Causes: The currency symbol of the line corresponds to the payment currency. The amount of the line corresponds to the amount converted into the base currency of the invoice. Solutions: Add one column named "Amount In Currency" and add the amount in the currency of the payment. In the column "Amount", correct the symbol of the currency. opw-2973067 closes odoo/odoo#101489 X-original-commit: b05d95a046fb7cfd438adce3d5f1e8b2f84953bf Signed-off-by: Grazioso Andrea (agr) Signed-off-by: Lefebvre Thomas (thle) --- addons/account/i18n/account.pot | 6 +++++ .../report_payment_receipt_templates.xml | 23 +++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 43d72a8ae63..c9719e38b0e 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -817,6 +817,12 @@ msgstr "" msgid "Amount" msgstr "" +#. module: account +#: model_terms:ir.ui.view,arch_db:account.bill_preview +#: model_terms:ir.ui.view,arch_db:account.report_payment_receipt_document +msgid "Amount In Currency" +msgstr "" + #. module: account #: model_terms:ir.ui.view,arch_db:account.bill_preview #: model_terms:ir.ui.view,arch_db:account.report_invoice_document diff --git a/addons/account/views/report_payment_receipt_templates.xml b/addons/account/views/report_payment_receipt_templates.xml index ca16b233fd4..4886204d7e7 100644 --- a/addons/account/views/report_payment_receipt_templates.xml +++ b/addons/account/views/report_payment_receipt_templates.xml @@ -33,18 +33,26 @@ + + + + + + + + + + - - @@ -52,22 +60,29 @@ + - - + + + + + + +
Invoice Date Invoice Number ReferenceAmount In Currency Amount
-
Due Amount for +