Skip to content

Commit

Permalink
[FIX] account_reconcile_oca: use lazy translation
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow committed Feb 25, 2025
1 parent d992165 commit 3aec596
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions account_reconcile_oca/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3aec596

Please sign in to comment.