[FIX] account: right currency on balance error message

closes odoo/odoo#104018

X-original-commit: 0455207c1b0980131da7001af9561f62e4669295
Signed-off-by: John Laterre (jol) <jol@odoo.com>
This commit is contained in:
Dylan Kiss (dyki)
2022-10-25 13:03:51 +02:00
parent 14699225ff
commit 9fbbab30b3
+2 -2
View File
@@ -1692,8 +1692,8 @@ class AccountMove(models.Model):
"The total of debits equals %s and the total of credits equals %s.\n"
"You might want to specify a default account on journal \"%s\" to automatically balance each move.",
move.display_name,
format_amount(self.env, sum_debit, move.currency_id),
format_amount(self.env, sum_credit, move.currency_id),
format_amount(self.env, sum_debit, move.company_id.currency_id),
format_amount(self.env, sum_credit, move.company_id.currency_id),
move.journal_id.name)
raise UserError(error_msg)