Skip to content

Commit

Permalink
[FIX] l10n_th_account_tax_report: check tax date null
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Mar 21, 2024
1 parent bf794b3 commit 522a9fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_th_account_tax_report/reports/tax_report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<t t-out="n" />
</div>
<div class="act_as_cell left">
<t t-out="line.tax_date.strftime('%d/%m/%Y')" />
<t t-out="line.tax_date and line.tax_date.strftime('%d/%m/%Y')" />
</div>
<div class="act_as_cell left">
<t t-out="line.tax_invoice_number" />
Expand Down
2 changes: 1 addition & 1 deletion l10n_th_account_tax_report/reports/tax_report_rd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
</td>
<td>
<span
t-out="(line.tax_date + relativedelta(years=543)).strftime('%d/%m/%Y')"
t-out="line.tax_date and (line.tax_date + relativedelta(years=543)).strftime('%d/%m/%Y')"
/>
</td>
<td>
Expand Down

0 comments on commit 522a9fb

Please sign in to comment.