From 3aec5960918b4d064a21cbe9cd04193bdd6fc81e Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Tue, 25 Feb 2025 16:58:57 +0100 Subject: [PATCH] [FIX] account_reconcile_oca: use lazy translation --- account_reconcile_oca/models/account_bank_statement_line.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index f5bcad816..9c3146f46 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -9,7 +9,9 @@ from odoo import Command, _, api, fields, models, tools from odoo.exceptions import UserError from odoo.fields import first -from odoo.tools import float_compare, float_is_zero +from odoo.tools import LazyTranslate, float_compare, float_is_zero + +_lt = LazyTranslate(__name__, default_lang="en_US") class AccountBankStatementLine(models.Model): @@ -455,7 +457,7 @@ def _get_manual_reconcile_vals(self): "account_id": ( [self.manual_account_id.id, self.manual_account_id.display_name] if self.manual_account_id - else [False, _("Undefined")] + else [False, _lt("Undefined")] ), "amount": self.manual_amount, "credit": -self.manual_amount if self.manual_amount < 0 else 0.0,