TIP: You can type at any time to perform a new search.
Thai Localization - Withholding Tax Certificate
l10n_th_withholding_tax_cert · OCA/l10n-thailand
- Repository
- OCA/l10n-thailand · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Localization / Accounting
- Folder size
- 0.14 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, Weblate, OCA-git-bot, oca-travis, Kitti U, oca-git-bot
Code Analysis ⓘ
Views touched (7)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
create_withholding_tax_cert |
Create Withholding Tax Cert. | create.withholding.tax.cert | form | New |
create_withholding_tax_cert_multi |
Create Multi Withholding Tax Cert. | create.withholding.tax.cert | form | New |
view_account_payment_form |
account.payment.form | account.payment | form | Inherits account.view_account_payment_form |
view_move_form |
account.move.form | account.move | form | Inherits account.view_move_form |
view_withholding_tax_cert_form |
view.withholding.tax.cert.form | withholding.tax.cert | form | New |
view_withholding_tax_cert_search |
view.withholding.tax.cert.search | withholding.tax.cert | search | New |
view_withholding_tax_cert_tree |
view.withholding.tax.cert.tree | withholding.tax.cert | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (5)
New fields (2)
-
wt_cert_cancelBooleancompute='_compute_wt_cert_cancel'help='This document has WT Cert(s) and all are cancelled or not WT Cert'store=True -
wt_cert_idsOne2many → withholding.tax.certcomodel_name='withholding.tax.cert'inverse_name='move_id'readonly=Truestring='Withholding Tax Cert.'
-
button_wt_certs(self)
New fields (2)
-
wt_cert_cancelBooleancompute='_compute_wt_cert_cancel'help='This document has WT Cert(s) and all are cancelled or not WT Cert'store=True -
wt_cert_idsOne2many → withholding.tax.certcomodel_name='withholding.tax.cert'inverse_name='payment_id'readonly=Truestring='Withholding Tax Cert.'
-
button_wt_certs(self)
New fields (5)
-
income_tax_formSelectionselection=INCOME_TAX_FORMstring='Income Tax Form' -
substituteBooleanstring='Substitute' -
wt_account_idsMany2many → account.accountcomodel_name='account.account'default=<expr>help='If accounts are specified, system will auto fill tax amount'required=Truestring='Withholing Tax Accounts' -
wt_cert_idMany2one → withholding.tax.certcomodel_name='withholding.tax.cert'domain=[('state', '=', 'done')]help="Withholding Tax is state 'done' only" -
wt_cert_income_typeSelectionselection=WHT_CERT_INCOME_TYPEstring='Type of Income'
-
create_wt_cert(self) -
create_wt_cert_multi(self) -
default_get(self, fields)@api.model
New fields (15)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>readonly=Truerequired=Truestring='Main Company' -
company_partner_idMany2one → res.partnercomodel_name='res.partner'copy=Falsedefault=<expr>ondelete='restrict'readonly=Truestring='Company' -
company_taxidCharreadonly=Truerelated='company_partner_id.vat'string='Company Tax ID' -
currency_idMany2one → res.currencycomodel_name='res.currency'readonly=Truerelated='company_id.currency_id'store=Truestring='Currency' -
dateDatecompute='_compute_wt_cert_data'required=Truestates={'draft': [('readonly', False)]}store=Truestring='Date'tracking=True -
income_tax_formSelectioncopy=Falsereadonly=Truerequired=Trueselection=INCOME_TAX_FORMstates={'draft': [('readonly', False)]}string='Income Tax Form' -
move_idMany2one → account.movecomodel_name='account.move'copy=Falsedomain="[('journal_id.type', '=', 'general'),('wt_cert_cancel', '=', True), ('state', '=', 'posted')]"ondelete='restrict'readonly=Truestates={'draft': [('readonly', False)]}string='Move'tracking=True -
nameCharcompute='_compute_wt_cert_data'states={'draft': [('readonly', False)]}store=Truestring='Number'tracking=True -
payment_idMany2one → account.paymentcomodel_name='account.payment'copy=Falsedomain="[('partner_id', '=', supplier_partner_id),('wt_cert_cancel', '=', True)]"ondelete='restrict'readonly=Truestates={'draft': [('readonly', False)]}string='Payment'tracking=True -
ref_wt_cert_idMany2one → withholding.tax.certcomodel_name='withholding.tax.cert'help='This field related from Old WT Cert.'string='Ref WHT Cert.' -
stateSelectioncopy=Falsedefault='draft'selection=[('draft', 'Draft'), ('done', 'Done'), ('cancel', 'Cancelled')]string='Status'tracking=True -
supplier_partner_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_wt_cert_data'ondelete='restrict'required=Truestates={'draft': [('readonly', False)]}store=Truestring='Supplier' -
supplier_taxidCharreadonly=Truerelated='supplier_partner_id.vat'string='Supplier Tax ID' -
tax_payerSelectioncopy=Falsedefault='withholding'readonly=Truerequired=Trueselection=TAX_PAYERstates={'draft': [('readonly', False)]}string='Tax Payer' -
wt_lineOne2many → withholding.tax.cert.linecomodel_name='withholding.tax.cert.line'copy=Falseinverse_name='cert_id'readonly=Truestates={'draft': [('readonly', False)]}string='Withholding Line'
-
action_cancel(self) -
action_create_withholding_tax_cert(self)This function is called from either account.move or account.payment -
action_done(self) -
action_draft(self)
New fields (8)
-
amountFloatreadonly=Falsestring='Tax Amount' -
baseFloatreadonly=Falsestring='Base Amount' -
cert_idMany2one → withholding.tax.certcomodel_name='withholding.tax.cert'index=Truestring='WHT Cert' -
company_idMany2one → res.companycomodel_name='res.company'related='cert_id.company_id' -
ref_move_line_idMany2one → account.move.linecomodel_name='account.move.line'help='Reference back to journal item which create wt move'readonly=Falsestring='Ref Journal Item' -
wt_cert_income_descCharrequired=Falsesize=500string='Income Description' -
wt_cert_income_typeSelectionrequired=Trueselection=WHT_CERT_INCOME_TYPEstring='Type of Income' -
wt_percentFloatstring='% Tax'
No public methods.
Loading…
Loading…