2
0

Merge PR #1661 into 16.0

Signed-off-by alexis-via
This commit is contained in:
OCA-git-bot 2023-06-09 14:37:29 +00:00
commit 31e5e00d0f

View File

@ -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