Skip to content

Commit

Permalink
l10n_it_withholding_tax: debugged error in case of wht with 0% rate (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjack82 authored and TheMule71 committed Nov 2, 2022
1 parent 2a8ed8b commit feb8a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_it_withholding_tax/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def generate_wt_moves(self):
payment_lines = wt_st.withholding_tax_id.payment_term.compute(
amount_wt,
rec_line_statement.date or False)
if payment_lines:
if payment_lines and payment_lines[0]:
p_date_maturity = payment_lines[0][0][0]
wt_move_vals = {
'statement_id': wt_st.id,
Expand Down

0 comments on commit feb8a47

Please sign in to comment.