[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user