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 alessandrocamilli committed Jun 26, 2018
1 parent 775f57a commit 0396b4c
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 0396b4c

Please sign in to comment.