Skip to content

Commit

Permalink
[FIX] l10n_th_account_tax: create wht certs only wht move have a wht …
Browse files Browse the repository at this point in the history
…tax id
  • Loading branch information
Pani-k-folk committed Nov 11, 2024
1 parent 17303e9 commit 6fe45ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l10n_th_account_tax/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,10 @@ def _preapare_wht_certs(self):
cert_line_vals = []
wht_tax_set = set()
wht_moves = list(
filter(lambda l: l["partner_id"][0] == partner.id, wht_move_groups)
filter(
lambda l: l["partner_id"][0] == partner.id and l["wht_tax_id"],
wht_move_groups,
)
)
for wht_move in wht_moves:
cert_line_vals.append(
Expand Down

0 comments on commit 6fe45ef

Please sign in to comment.