Thai Localization - Expense Tax
l10n_th_account_tax_expense · OCA/l10n-thailand
Health
73/100
fair
-
Security25/25No findings
-
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
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
0 migration notes
5 models
3 views
0 HTTP endpoints
Description
This module make sure that Expense will also comply with Tax Invoice concept of l10n_th_account_tax.
In case expense has VAT,
- Expense's Bill Reference and Date will be used as Tax Invoice Number and Tax Invoice Date
- Without Bill Reference, Post Journal Entry is not allowed
This module also provide addition step to create withholding tax journal entry.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_expense_view_form |
hr.expense.view.form | hr.expense | form | Inherits hr_expense.hr_expense_view_form |
view_account_payment_register_form |
account.payment.register.form | account.payment.register | form | Inherits l10n_th_account_tax.view_account_payment_register_form |
view_hr_expense_sheet_form |
view.hr.expense.sheet.form | hr.expense.sheet | form | Inherits hr_expense.view_hr_expense_sheet_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (2)-
button_cancel(self)Check Withholding tax JV before cancel journal entry on clearing -
button_draft(self)Unlink withholding tax on clearing
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
bill_partner_idMany2one → res.partnercomodel_name='res.partner'default=<expr>string='Vendor Reference'
No public methods.
New fields (4)
-
bill_partner_idMany2one → res.partnercomodel_name='res.partner'string='Vendor Reference'tracking=True -
tax_dateDate -
tax_numberChar -
wht_tax_idMany2one → account.withholding.taxcomodel_name='account.withholding.tax'compute='_compute_wht_tax_id'readonly=Falsestore=Truestring='WHT'tracking=True
No public methods.
New fields (2)
-
need_wht_entryBooleancompute='_compute_need_wht_entry'help='Tell user that this advance clearing is pending create withholding tax entry.' -
wht_move_idMany2one → account.movecomodel_name='account.move'copy=Falsehelp='For case clear advance, a JV can be created to record withholding tax'ondelete='set null'readonly=Truestring='Withholding Tax JV'tracking=True
-
action_create_withholding_tax_entry(self)From expense sheet with WHT lines, this action helps create new JV with default withholding entries -
action_open_wht_move(self) -
action_register_payment(self)For Clearing, never deduct WHT auto -
action_sheet_move_post(self)Update tax invoice from expense
Loading…
Loading…