OdooWiki OCA HUB

Thai Localization - Tax address

l10n_th_tax_address folder_open OCA/l10n-thailand open_in_new
Localization / Accounting License: AGPL-3

This module supported multi withholding tax in invoice. This module is used to call the VAT Service of the Revenue Department (RD). By input the VAT number and branch, this module retrieves the name and address information of the taxpayer.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a 'Get Address' button on the partner form that looks up a Thai taxpayer's name and registered address from the Revenue Department VAT service using the Tax ID and branch number, then fills in the contact details automatically.

This module helps Thai users fill in company contact details without typing them by hand. On the partner form, right after the branch field, a highlighted 'Get Address' button appears. When clicked, Odoo sends the partner's Tax ID and branch number to the Thai Revenue Department VAT web service and writes the returned information back onto the contact.

What gets filled in automatically: - Company type is set to company and the registered name is updated. - The street address is built from house number, village, soi, moo, building, floor, room and street. - Sub-district, district, province and postal code are filled in, with special wording used for Bangkok (khwaeng/khet). - The province is matched to an existing state record when possible.

Business rules and errors: - If the Tax ID or branch is missing, Odoo shows an error asking for both. - If the service returns an error message, it is shown to the user. - If the connection to the service fails, an error is raised.

The service address is stored in a system setting, so administrators can change it without touching code. The module only extends res.partner and adds one button to the standard partner form; it does not create new menus or reports.

Models and fields (1)
  • res.partner · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 16.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/l10n-thailand.

terminal Installation and usage

OCA documentation · Odoo 16.0

Input the Tax ID and Tax Branch on the Contact page, then click the "Get Address" button. It will call an API to retrieve data from the Revenue Department. The received information will be automatically filled into the following fields:

  • Street: From house number to street
  • Street2: Sub-district
  • City: District
  • State: Province
  • Zip: Postal code

Additionally, Type contact will automatically change to a company.

No verified information in OCA: Installation, Configuration.

info

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.