Skip to content

Commit

Permalink
[REF] l10n_it_withholding_tax_payment: Reformatted after template update
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAionTech committed Dec 7, 2023
1 parent d454c5f commit b1641da
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions l10n_it_withholding_tax_payment/models/withholding_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,24 @@ def generate_from_moves(self, wt_moves):
for wt_move in wt_moves:
if wt_move.state == "paid":
raise ValidationError(
_("WT move already paid! - {} - {} - {}").format(
wt_move.partner_id.name, wt_move.date, str(wt_move.amount)
_(
"WT move already paid! - %(partner)s - %(date)s - %(amount)s",
partner=wt_move.partner_id.name,
date=wt_move.date,
amount=str(wt_move.amount),
)
)

if wt_move.wt_move_payment_id:
raise ValidationError(
_(
"WT move already in a payment move! "
"Paym. move {} - Ref WT: {} - {} - {}"
).format(
str(wt_move.wt_move_payment_id.id),
wt_move.partner_id.name,
wt_move.date,
str(wt_move.amount),
"Paym. move %(move)s - "
"Ref WT: %(partner)s - %(date)s - %(amount)s",
move=str(wt_move.wt_move_payment_id.id),
partner=wt_move.partner_id.name,
date=wt_move.date,
amount=str(wt_move.amount),
)
)

Expand Down

0 comments on commit b1641da

Please sign in to comment.