From da28fd88151f0360a80e605c141b0614f6b21767 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 11 Aug 2020 09:56:12 +0000 Subject: [PATCH] [FIX] account_check_printing: Wrong payment currency symbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce: - Let's consider a company C in $ - Create a ventdor bill VB of 100$ - Validate VB and register a payment with a check in € - Print the check Bug: The symbol of the currency of the payment was $ instead of € opw:2314005 closes odoo/odoo#55813 X-original-commit: f05bd107aca192cd7e4b4ab84d0a3e61e932a241 Signed-off-by: Simon Goffin (sig) --- addons/account_check_printing/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_check_printing/models/account_payment.py b/addons/account_check_printing/models/account_payment.py index 673ed281950..d27a2cebe8c 100644 --- a/addons/account_check_printing/models/account_payment.py +++ b/addons/account_check_printing/models/account_payment.py @@ -200,6 +200,6 @@ class AccountPayment(models.Model): 'number': invoice.ref and invoice.name + ' - ' + invoice.ref or invoice.name, 'amount_total': formatLang(self.env, invoice_sign * invoice.amount_total, currency_obj=invoice.currency_id), 'amount_residual': formatLang(self.env, amount_residual, currency_obj=invoice.currency_id) if amount_residual * 10**4 != 0 else '-', - 'amount_paid': formatLang(self.env, invoice_sign * amount_paid, currency_obj=invoice.currency_id), + 'amount_paid': formatLang(self.env, invoice_sign * amount_paid, currency_obj=self.currency_id), 'currency': invoice.currency_id, }