OdooWiki OCA HUB

Currency Rate Update - BOT

currency_rate_update_TH_BOT folder_open OCA/l10n-thailand open_in_new
Financial Management/Configuration License: AGPL-3

This module adds bot.or.th currency exchange rates provider.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds the Bank of Thailand (BOT) as an exchange rate provider in Odoo, so companies using THB can automatically download daily BOT rates and update their currencies.

This module plugs the Bank of Thailand into Odoo's currency rate update system. Once installed, you can choose "Bank of Thailand" as the service on a currency rate provider and Odoo will fetch daily average exchange rates from the BOT gateway.

  • In Settings, a new "BOT Provider" section lets you enter your BOT token (stored per company).
  • On each currency, two new fields appear: the BOT currency code (filled automatically from the currency name) and the BOT rate type, where you pick Mid Rate, Selling Rate, Buying Sight Rate or Buying Transfer Rate (Mid Rate by default).
  • Currencies can be grouped by BOT rate type in the currency list search.

Business rules enforced by the code: the provider only works when the company's base currency is THB, otherwise an error is raised; a BOT token must be set; and if the requested period is later than the BOT's last update date, an error shows that date. The module supports a fixed list of currencies (USD, EUR, GBP, JPY, and many more) and normalises the Japanese yen, which BOT quotes per 100 units, to a per-1 rate. A warning is displayed on the provider form when a non-THB base currency is used, because cross rates are then recalculated and may differ from real market rates.

Models and fields (4)
  • res.company · extends an existing modelbot_token (BOT Token)
  • res.currency · extends an existing modelbot_currency_name (BOT Currency), bot_currency_rate_type (BOT Currency Rate Type)
  • res.config.settings · extends an existing modelbot_token (Bot Token)
  • res.currency.rate.provider · extends an existing modelservice

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 15.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0

To enable scheduled currency rates update:

  • Go to Invoicing > Configuration > Settings
  • Ensure Automatic Currency Rates (OCA) is checked

To configure currency rates providers:

  • Go to Invoicing > Configuration > Currency Rates Providers
  • Create and configure one or more providers

To configure bot.or.th currency rates provider credentials

Follow the steps below to obtain the API token from BOT (bot.or.th) and configure it in Odoo:

  • Login / Sign Up Visit the following URL to log in or sign up for a new account: BOT API Login / Sign Up
  • Create New Apps | After logging in, navigate to Apps > Create New App | Fill in the required details for your application, such as title and description. when done, you will have client secret then verify Client Secret with secret key
  • Access API Products After logging in, go to API Products. Select Exchange Rates (2.0.1) from the available products. Alternatively, you can access the Exchange Rates product directly via this link: Exchange Rates API Product
  • Subscribe to the Exchange Rates API Click on Subscribe to start the subscription process. Follow the on-screen instructions until you receive your API token.
  • Copy the API Token Once the subscription is complete, you will be provided with an API token. Copy the token to use in the next step.
  • Configure Odoo with the BOT Token
  • In Odoo, Go to Invoicing > Configuration > Settings
  • Find the BOT Provider section under the Currencies settings.
  • Paste the copied API token into the Client ID field.
  • Save the Settings After pasting the token, save the changes in Odoo. Your system will now be connected to the BOT API for currency rate updates.

To update historical currency rates:

  • Go to Invoicing > Configuration > Currency Rates Providers
  • Select specific providers
  • Launch Actions > Update Rates Wizard
  • Configure date interval and click Update

No verified information in OCA: Installation.

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.