[FIX] account_reconcile_oca: use lazy translation
parent
f81e2e5ec9
commit
d4b9d8f83d
|
@ -9,7 +9,9 @@ from dateutil.relativedelta import relativedelta
|
||||||
from odoo import Command, _, api, fields, models, tools
|
from odoo import Command, _, api, fields, models, tools
|
||||||
from odoo.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
from odoo.fields import first
|
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):
|
class AccountBankStatementLine(models.Model):
|
||||||
|
@ -455,7 +457,7 @@ class AccountBankStatementLine(models.Model):
|
||||||
"account_id": (
|
"account_id": (
|
||||||
[self.manual_account_id.id, self.manual_account_id.display_name]
|
[self.manual_account_id.id, self.manual_account_id.display_name]
|
||||||
if self.manual_account_id
|
if self.manual_account_id
|
||||||
else [False, _("Undefined")]
|
else [False, _lt("Undefined")]
|
||||||
),
|
),
|
||||||
"amount": self.manual_amount,
|
"amount": self.manual_amount,
|
||||||
"credit": -self.manual_amount if self.manual_amount < 0 else 0.0,
|
"credit": -self.manual_amount if self.manual_amount < 0 else 0.0,
|
||||||
|
@ -907,7 +909,7 @@ class AccountBankStatementLine(models.Model):
|
||||||
default_values_list = [
|
default_values_list = [
|
||||||
{
|
{
|
||||||
"date": move.date,
|
"date": move.date,
|
||||||
"ref": _("Reversal of: %s", move.name),
|
"ref": _lt("Reversal of: %s", move.name),
|
||||||
}
|
}
|
||||||
for move in to_reverse
|
for move in to_reverse
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue