← User guide

Exchange Rates for the Czech Republic (ČNB)

Downloads the Czech National Bank's daily exchange rate, sets the provider up for you, and supports a fixed monthly rate with the actual daily rates kept for the year-end revaluation.

Version19.0.1.3.2
EditionCommunity and Enterprise
LicenceAGPL-3
Requirescurrency_rate_update

What it is for

A Czech company keeping its books in Czech crowns converts foreign-currency documents at the exchange rate announced by Česká národní banka (ČNB, kurz devizového trhu). Odoo's standard ECB service gives a different number, so this module adds ČNB as a source to the OCA rate-update framework (currency_rate_update) and:

It works on Community and Enterprise alike.

What installation sets up

On installation, every company whose country (or fiscal country) is the Czech Republic gets a Česká národní banka provider, provided the database already has at least one active foreign currency that ČNB publishes. The provider:

A company that already has a ČNB provider, even an archived one, is left alone. A company with no active foreign currency gets no provider.

The providers are listed in Accounting → Configuration → Currency Rates Providers — on Community without full accounting the root menu reads Invoicing. The screen comes from the OCA module and, like this module's own fields, shows in English.

If you activate a currency after installation and the list is still empty, create the provider yourself: New, Provider = Česká národní banka, pick the Currencies, leave the interval at 1 day, save. The list also has a button, Create the Czech default provider, shown even when the list is empty; it creates only what is missing and needs Settings rights. (With the Slovak module also installed, the list shows only one of the two buttons; the other stays in the Actions menu of a selected row.)

Automatic downloads also need Automatic Currency Rates (OCA) ticked in Accounting → Configuration → Settings, block Currencies (ticked by default).

Daily rate

In the default mode, ČNB rate = Daily rate (denní kurz), every ČNB fixing is stored under its own date (Accounting → Configuration → Currencies). A document takes the newest rate dated on or before its date, which on a weekend or public holiday is the last fixing before it.

To load past rates, open the provider, click Update Rates Now and choose the Start Date and End Date. A range is read from ČNB's yearly files, so every fixing day in it is stored, not just the last one. If the range starts on a weekend or holiday, the last fixing before it is stored too.

ČNB quotes some currencies per 100 units (HUF, JPY and others); the module converts them, so the stored rate is always per one unit.

Fixed monthly rate

Set ČNB rate = Fixed monthly rate (pevný kurz) on the provider if your internal rule says documents are converted at one rate per month. Then:

Option The month's rate is
Rate valid on the 1st of the month (default) the fixing announced for the 1st, or the last one before it if the 1st is not a fixing day
Last fixing of the previous month the last fixing before the 1st

The two differ only when the 1st is itself a fixing day. The Accounting Act defines the fixed rate as the rate announced for the first day of the period, so agree the second option with your accountant before choosing it.

Switching an existing provider to the monthly mode does not delete the daily rates it has already stored. Delete them for the months that should use the fixed rate, or documents in those months keep taking the daily ones.

Limitations