Skip to content

Commit

Permalink
debugged error in case of wht with 0% rate
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjack82 committed Mar 28, 2018
1 parent 5935db2 commit cf4081d
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[0]:
p_date_maturity = payment_lines[0][0][0]
wt_move_vals = {
'statement_id': wt_st.id,
Expand Down

0 comments on commit cf4081d

Please sign in to comment.