commit
31e5e00d0f
@ -142,13 +142,14 @@ class AccountCashDeposit(models.Model):
|
|||||||
):
|
):
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_(
|
_(
|
||||||
"On {deposit}, the cash journal {cash_journal} is not "
|
"On %(deposit)s, the cash journal %(cash_journal)s is not "
|
||||||
"in the selected currency {currency}."
|
"in the selected currency %(currency)s."
|
||||||
).format(
|
|
||||||
deposit=rec.display_name,
|
|
||||||
cash_journal=rec.cash_journal_id.display_name,
|
|
||||||
currency=rec.currency_id.name,
|
|
||||||
)
|
)
|
||||||
|
% {
|
||||||
|
"deposit": rec.display_name,
|
||||||
|
"cash_journal": rec.cash_journal_id.display_name,
|
||||||
|
"currency": rec.currency_id.name,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
|
Loading…
Reference in New Issue
Block a user