Thai Localization - VAT and Withholding Tax Reports
l10n_th_account_tax_report · OCA/l10n-thailand
-
Security22/251 minor finding
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
internal_layout— Since 15.0: QWeb `t-raw` is deprecated: use `t-out`; for intended HTML, sanitize it at its source, since `Markup` alone does not sanitize. migration-view-t-raw · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
TAX Report is a report that displays transactions based on the selected tax type within a specific date range (period). It helps businesses track VAT and Withholding Tax more accurately, and supports both standard and Revenue Department (RD) formats for compliance purposes. The module also allows customization of report formats and text files for official tax submissions.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 32
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
header_line_report_withholding_tax |
header_line_report_withholding_tax | ir.ui.view | qweb | New |
header_report_withholding_tax |
header_report_withholding_tax | ir.ui.view | qweb | New |
internal_layout |
internal_layout | ir.ui.view | qweb | New |
line_report_withholding_tax |
line_report_withholding_tax | ir.ui.view | qweb | New |
report_rd_base_company_withholding_tax |
report_rd_base_company_withholding_tax | ir.ui.view | qweb | New |
report_rd_base_partner_vat_withholding_tax |
report_rd_base_partner_vat_withholding_tax | ir.ui.view | qweb | New |
report_rd_base_total_withholding_tax |
report_rd_base_total_withholding_tax | ir.ui.view | qweb | New |
report_rd_company_tax_branch |
report_rd_company_tax_branch | ir.ui.view | qweb | New |
report_rd_tax_report |
report_rd_tax_report | ir.ui.view | qweb | New |
report_rd_tax_report_article |
report_rd_tax_report_article | ir.ui.view | qweb | New |
report_rd_tax_report_header |
report_rd_tax_report_header | ir.ui.view | qweb | New |
report_rd_thai_tax |
report_rd_thai_tax | ir.ui.view | qweb | New |
report_rd_withholding_tax |
report_rd_withholding_tax | ir.ui.view | qweb | New |
report_rd_withholding_tax_pnd1 |
report_rd_withholding_tax_pnd1 | ir.ui.view | qweb | New |
report_rd_withholding_tax_pnd1a |
report_rd_withholding_tax_pnd1a | ir.ui.view | qweb | New |
report_rd_withholding_tax_pnd2 |
report_rd_withholding_tax_pnd2 | ir.ui.view | qweb | New |
report_rd_withholding_tax_pnd3 |
report_rd_withholding_tax_pnd3 | ir.ui.view | qweb | New |
report_rd_withholding_tax_pnd53 |
report_rd_withholding_tax_pnd53 | ir.ui.view | qweb | New |
report_tax_report_base |
report_tax_report_base | ir.ui.view | qweb | New |
report_tax_report_filters |
report_tax_report_filters | ir.ui.view | qweb | New |
report_tax_report_lines |
report_tax_report_lines | ir.ui.view | qweb | New |
report_tax_report_lines_header |
report_tax_report_lines_header | ir.ui.view | qweb | New |
report_tax_report_total_lines |
report_tax_report_total_lines | ir.ui.view | qweb | New |
report_thai_tax |
report_thai_tax | ir.ui.view | qweb | New |
report_wht |
report_wht | ir.ui.view | qweb | New |
report_withholding_tax |
report_withholding_tax | ir.ui.view | qweb | New |
report_withholding_tax_text |
report_withholding_tax_text | ir.ui.view | qweb | New |
res_company_view_form |
res.company | form | Inherits base.view_company_form | |
res_config_settings_view_form |
res.config.settings.view.form.thai.account | res.config.settings | form | Inherits l10n_th_account_tax.res_config_settings_view_form |
tax_report_wizard_form |
tax.report.wizard.form | tax.report.wizard | form | New |
total_line_report_withholding_tax |
total_line_report_withholding_tax | ir.ui.view | qweb | New |
view_withholding_tax_report_wizard |
withholding.tax.report.wizard.view | withholding.tax.report.wizard | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 12
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=Falsestring='Company' -
date_fromDaterequired=True -
date_range_idMany2one → date.rangecomodel_name='date.range' -
date_toDaterequired=True -
show_cancelBooleandefault=Truestring='Show Cancelled'
-
button_export_html(self) -
button_export_pdf(self) -
button_export_xlsx(self) -
check_date_from_to(self)@api.constrains('date_from', 'date_to') -
onchange_date_range_id(self)@api.onchange('date_range_id')Handle date range change.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
tax_report_formatSelectiondefault='std'required=Trueselection=[('std', 'Standard'), ('rd', 'Revenue Department')] -
wht_report_formatSelectiondefault='std'required=Trueselection=[('std', 'Standard'), ('rd', 'Revenue Department')] -
wht_text_file_pnd1_formatTextdefault='%(income_code)s|%(row_number)s|%(partner_vat)s|%(partner_title)s|%(partner_firstname)s|%(partner_lastname)s|%(cert_date)s|%(base)s|%(amount)s|%(cert_tax_payer)s\n'help="Display format to use for text file PND1.\n\nYou can use python-style string pattern with all the fields of the withholding tax (for example, use '%(partner_vat)s' to display the field 'partner_vat') plus\n%(row_number)s: Index\n%(cert_cancel)s: Cancelled\n%(cert_date)s: Date\n%(cert_date_str)s: Date (string)\n%(cert_name)s: Name\n%(cert_tax_payer)s: Tax Payer\n%(cert_tax_payer_display)s: Tax Payer Display\n%(cert_tax_payer_code)s: Tax Payer Code\n%(partner_id)s: Partner ID\n%(partner_name)s: Partner Name\n%(partner_title)s: Partner Title\n%(partner_firstname)s: Partner Firstname\n%(partner_lastname)s: Partner Lastname\n%(partner_address)s: Partner Address\n%(partner_street)s: Partner Street\n%(partner_street2)s: Partner Street2\n%(partner_city)s: Partner City\n%(partner_state)s: Partner State\n%(partner_zip)s: Partner Zip\n%(partner_country)s: Partner Country\n%(partner_vat)s: Partner VAT\n%(partner_branch)s: Partner Branch\n%(partner_bank_account)s: Partner Bank Account\n%(income_code)s: Income Code\n%(base)s: Base\n%(amount)s: Amount"string='Layout in Text File PND1' -
wht_text_file_pnd3_formatTextdefault='%(row_number)s|%(partner_vat)s|%(partner_branch)s|%(partner_title)s|%(partner_firstname)s|%(partner_lastname)s|%(partner_street)s|%(partner_street2)s|%(partner_city)s|%(partner_state)s|%(partner_zip)s|%(loop_cert_date)s|%(loop_wht_cert_income_desc)s|%(loop_wht_percent)s|%(loop_base)s|%(loop_amount)s|%(loop_cert_tax_payer)s\n'help="Display format to use for text file PND3.\n\nYou can use python-style string pattern with all the fields of the withholding tax (for example, use '%(partner_vat)s' to display the field 'partner_vat') plus\n%(row_number)s: Index\n%(cert_cancel)s: Cancelled\n%(cert_date)s: Date\n%(cert_date_str)s: Date (string)\n%(cert_name)s: Name\n%(cert_tax_payer)s: Tax Payer\n%(cert_tax_payer_display)s: Tax Payer Display\n%(cert_tax_payer_code)s: Tax Payer Code\n%(partner_id)s: Partner ID\n%(partner_name)s: Partner Name\n%(partner_title)s: Partner Title\n%(partner_firstname)s: Partner Firstname\n%(partner_lastname)s: Partner Lastname\n%(partner_address)s: Partner Address\n%(partner_street)s: Partner Street\n%(partner_street2)s: Partner Street2\n%(partner_city)s: Partner City\n%(partner_state)s: Partner State\n%(partner_zip)s: Partner Zip\n%(partner_country)s: Partner Country\n%(partner_vat)s: Partner VAT\n%(partner_branch)s: Partner Branch\n%(partner_bank_account)s: Partner Bank Account\n%(income_code)s: Income Code\n%(base)s: Base\n%(amount)s: Amount"string='Layout in Text File PND3' -
wht_text_file_pnd53_formatTextdefault='%(row_number)s|%(partner_vat)s|%(partner_branch)s|%(partner_title)s|%(partner_name)s|%(partner_street)s|%(partner_street2)s|%(partner_city)s|%(partner_state)s|%(partner_zip)s|%(loop_cert_date)s|%(loop_wht_cert_income_desc)s|%(loop_wht_percent)s|%(loop_base)s|%(loop_amount)s|%(loop_cert_tax_payer)s\n'help="Display format to use for text file PND53.\n\nYou can use python-style string pattern with all the fields of the withholding tax (for example, use '%(partner_vat)s' to display the field 'partner_vat') plus\n%(row_number)s: Index\n%(cert_cancel)s: Cancelled\n%(cert_date)s: Date\n%(cert_date_str)s: Date (string)\n%(cert_name)s: Name\n%(cert_tax_payer)s: Tax Payer\n%(cert_tax_payer_display)s: Tax Payer Display\n%(cert_tax_payer_code)s: Tax Payer Code\n%(partner_id)s: Partner ID\n%(partner_name)s: Partner Name\n%(partner_title)s: Partner Title\n%(partner_firstname)s: Partner Firstname\n%(partner_lastname)s: Partner Lastname\n%(partner_address)s: Partner Address\n%(partner_street)s: Partner Street\n%(partner_street2)s: Partner Street2\n%(partner_city)s: Partner City\n%(partner_state)s: Partner State\n%(partner_zip)s: Partner Zip\n%(partner_country)s: Partner Country\n%(partner_vat)s: Partner VAT\n%(partner_branch)s: Partner Branch\n%(partner_bank_account)s: Partner Bank Account\n%(income_code)s: Income Code\n%(base)s: Base\n%(amount)s: Amount"string='Layout in Text File PND53'
No public methods.
-
tax_report_formatSelectionreadonly=Falserelated='company_id.tax_report_format'required=True -
wht_report_formatSelectionreadonly=Falserelated='company_id.wht_report_format'required=True
No public methods.
-
tax_idMany2one → account.taxcomodel_name='account.tax'domain=[('tax_exigibility', '=', 'on_invoice'), ('type_tax_use', 'in', ['sale', 'purchase']), ('include_base_amount', '=', False)]required=Truestring='Tax'
No public methods.
-
income_tax_formSelectionrequired=Trueselection=[('pnd1', 'PND1'), ('pnd1a', 'PND1A'), ('pnd2', 'PND2'), ('pnd3', 'PND3'), ('pnd53', 'PND53')]
-
button_export_txt(self)
Loading…
Loading…
Loading…