Skip to content

Commit

Permalink
[FIX] l10n_th_account: create wht certs only wht move have a wht tax id
Browse files Browse the repository at this point in the history
  • Loading branch information
Pani-k-folk committed Nov 11, 2024
1 parent 17303e9 commit 9fca2f9
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 9fca2f9

Please sign in to comment.