Repository
OCA/l10n-thailand · module folder · Try on Runboat
Module version
1.1.0
Category
Localization / Accounting
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/l10n-thailand
Last tracking update
2026-08-07 08:43:05
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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_id Many2one → res.partner
    comodel_name='res.partner' default=<expr> string='Vendor Reference'
Public methods (0)

No public methods.

New fields (4)
  • bill_partner_id Many2one → res.partner
    comodel_name='res.partner' string='Vendor Reference' tracking=True
  • tax_date Date
  • tax_number Char
  • wht_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax' compute='_compute_wht_tax_id' readonly=False store=True string='WHT' tracking=True
Public methods (0)

No public methods.

New fields (2)
  • need_wht_entry Boolean
    compute='_compute_need_wht_entry' help='Tell user that this advance clearing is pending create withholding tax entry.'
  • wht_move_id Many2one → account.move
    comodel_name='account.move' copy=False help='For case clear advance, a JV can be created to record withholding tax' ondelete='set null' readonly=True string='Withholding Tax JV' tracking=True
Public methods (4)
  • 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…