From 9fbbab30b3e8aae52345c7a34c0e629c26b69bd1 Mon Sep 17 00:00:00 2001 From: "Dylan Kiss (dyki)" Date: Mon, 24 Oct 2022 13:46:07 +0000 Subject: [PATCH] [FIX] account: right currency on balance error message closes odoo/odoo#104018 X-original-commit: 0455207c1b0980131da7001af9561f62e4669295 Signed-off-by: John Laterre (jol) --- addons/account/models/account_move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index f8c0bff34df..926f8f3d1be 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -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)