Repository
OCA/l10n-thailand · module folder · Try on Runboat
Module version
1.0.3
Category
Localization / Accounting
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-thailand
Last tracking update
2026-08-07 07:47:46
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, OCA Transbot, OCA-git-bot, oca-travis, Kitti U, ps-tubtim, oca-git-bot
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_th_company_novat, l10n_th_expense_withholding_tax, l10n_th_withholding_tax_cert
Description

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
product_template_form_view product.template.form.inherit product.template form Inherits product.product_template_form_view
view_account_form view.account.form account.account form Inherits account.view_account_form
view_account_payment_register_form account.payment.register.form account.payment.register form Inherits account.view_account_payment_register_form
view_account_withholding_tax_form view.account.withholding.tax.form account.withholding.tax form New
view_account_withholding_tax_tree view.account.withholding.tax.tree account.withholding.tax tree New
view_move_form account.move.form account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (1)
  • wt_account Boolean
    default=False help='If check, this account is for withholding tax' string='WT Account'
Public methods (0)

No public methods.

New fields (1)
  • wt_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax' compute='_compute_wt_tax_id' readonly=False store=True string='WT'
Public methods (0)

No public methods.

New fields (1)
  • wt_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax' help='Optional hidden field to keep wt_tax. Useful for case 1 tax only' string='Withholding Tax'
Public methods (0)

No public methods.

New fields (2)
  • wt_amount_base Monetary
    help='Based amount for the tax amount' string='Withholding Base'
  • wt_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax' help='Optional hidden field to keep wt_tax. Useful for case 1 tax only' string='Withholding Tax'
Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (3)
  • account_id Many2one → account.account
    comodel_name='account.account' domain=[('wt_account', '=', True)] ondelete='restrict' required=True string='Withholding Tax Account'
  • amount Float
    string='Amount'
  • name Char
    required=True
Public methods (0)

No public methods.

New fields (2)
  • supplier_wt_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax'
  • wt_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax'
Public methods (0)

No public methods.

Loading…