OdooWiki OCA HUB

Update Exchange Rates from SBIF

l10n_cl_currency_rate_sbif folder_open OCA/l10n-chile open_in_new
Tools License: AGPL-3

This module allows you to update the exchange rate for the following currencies used in Chile:

  • US Dollar
  • Euro
  • UF
  • UTM

using SBIF web services.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Update the exchange rates of the US Dollar, Euro, UF and UTM in Odoo directly from the SBIF (Chilean financial authority) web service, either manually from the currency form or automatically every day.

This module adds a button on the currency form (only visible for USD, EUR, UF and UTM) that fetches the latest value from the SBIF web service and creates a new exchange rate record for every company whose main currency is the Chilean Peso (CLP).

It also installs a scheduled job that runs once a day and updates all four currencies automatically, so users do not have to enter the rates by hand.

  • The button is called "Update Currency" and appears in the button box of the currency form.
  • The daily job is named "Update Chilean Currencies Exchange Rates".
  • The module adds two configuration parameters: the SBIF API key (empty by default) and the base URL of the service (http://api.sbif.cl/api-sbifv3/recursos_api).
  • It also creates the UF and UTM currencies with a very high rounding precision (14 decimals) and sets the general currency precision to 14 decimals.

The exchange rate is stored as the inverse of the value returned by SBIF, so that Odoo can convert amounts correctly. If a rate for the same day already exists, the creation is skipped to avoid duplicates. The module extends the res.currency and res.currency.rate models and depends on the decimal precision module.

Depends on

decimal_precision
Models and fields (2)
  • res.currency · extends an existing modelrate (Current Rate), rounding (Rounding Factor)
  • res.currency.rate · extends an existing modelrate

Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/l10n-chile.

terminal Installation and usage

OCA documentation · Odoo 12.0

We recommend you also install the following modules for a better experience:

  • account_invoice_prices_update (purchases)
  • base_currency_inverse_rate (to see the inverse rate, which is always more familiar to your brain)

Upgrade

If you are upgrading from previous versions, we advise you to delete the UF
and UTM currencies. This way the external reference name will be correctly
established.

To configure this module

  • Get your own API key from http://api.sbif.cl/api/
  • Go to Settings
  • Activate the develop mode
  • Go to Settings > Technical > Parameters > System Parameters
  • Edit the key "sbif.financial.indicators.apikey"
  • Enter your API key in the value
  • Go to Accounting
  • Create a multi-currency transaction (customer invoice or vendor bill) to use the exchange rate given by SBIF
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.