Thai Localization - Tax with Payment Multi Deduction
This module supported multi withholding tax in invoice.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0When registering a payment for invoices that carry Thai withholding tax, Odoo automatically fills the deduction lines with the correct withholding tax, base amount and partner, and switches the payment difference handling to multi deduction.
This module connects Thai withholding tax data on invoices with the multi-deduction payment wizard. When you open the Register Payment screen for one or more invoices or journal items, Odoo looks at the lines that have a withholding tax set.
- If more than one such line is found and the payment difference handling is set to keep the difference open, it is automatically changed to the multi-deduction option.
- When the multi-deduction option is selected, the deduction lines are filled automatically from the withholding tax information on the invoice lines, including the partner, the withholding tax, and the base amount used to compute the tax.
- If the payment difference is zero, the payment amount is reduced by the total deducted amount and the difference is recalculated.
The deduction lines now show extra columns for partner, withholding tax and base amount. The tax amount is computed from the withholding tax rate applied to the base amount. For personal income tax, the system checks that an effective rate exists for the payment date and converts amounts between the payment currency and the company currency before computing the tax.
When a deduction line is marked as open, the withholding tax and base amount are cleared. The module works on the payment register wizard and the payment deduction wizard, and it is installed automatically when both Thai withholding tax and multi-deduction payment features are present.
Models and fields (2)
- account.payment.register · extends an existing model
- account.payment.deduction · extends an existing modelpartner_id, wht_tax_id (Withholding Tax), wht_amount_base
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/l10n-thailand.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0From vendor bill that want to withholding tax,
- Create invoice and multi invoice lines.
- Fill withholding tax in Field WHT each invoice lines.
- Post \> Register Payment.
- System will auto computed amount include multi withholding tax.
User can flag some line in deduction table, to keep some amount open. i..e, 100.0 will be reduced from AR/AP account, in order to keep it open.
Step to keep some amount open.
- Create invoice and multi invoice lines.
- Fill withholding tax in Field WHT each invoice lines.
- Post \> Register Payment \> check Open in deduction table that you need keep it. \> Post
- Next time, Register Payment \> Fill amount residual manual \> Post
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.