[FIX] account_check_printing: Wrong payment currency symbol

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) <sig@openerp.com>
This commit is contained in:
Goffin Simon
2020-08-12 13:42:44 +00:00
parent 7be346d637
commit da28fd8815
@@ -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,
}