OdooWiki OCA HUB

Currency Rate Update: Croatia-HNB

currency_rate_update_hr_hnb folder_open OCA/l10n-croatia open_in_new
Financial Management/Configuration License: AGPL-3

This module provides HNB currency rates

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds Croatia's HNB (Croatian National Bank) as an exchange rate provider in Odoo, so users can automatically download official Croatian kuna/euro reference rates into their currency rates.

This module plugs the Croatian National Bank (HNB) into Odoo's currency rate update system. Once installed, a new provider option called "Croatia-HNB" becomes available wherever exchange rate providers are configured (the currency rate provider settings that come from the base currency rate update module).

When a provider is set to Croatia-HNB, Odoo contacts the HNB public web service to fetch official rates. Users can:

  • Choose which currencies to update; the module asks HNB which currencies it supports and only keeps rates for the currencies selected on the provider.
  • Fetch rates for a date range, so historical rates can be loaded, not just today's.
  • Pick which HNB rate type to use. A system setting stores the rate type, defaulting to "srednji" (the middle/reference rate). The chosen type is used when reading the downloaded data.

Rates are returned per application date and stored as currency rates, so they feed into Odoo's normal currency conversion for accounting, sales and purchases. The module only extends the existing rate provider model (res.currency.rate.provider) and adds one configuration parameter; it does not create new menus or screens of its own. If the HNB response contains a value that cannot be read as a number, that entry is skipped and logged instead of breaking the whole update.

Models and fields (1)
  • res.currency.rate.provider · extends an existing modelservice

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-croatia.

terminal Installation and usage

OCA documentation · Odoo 16.0

To configure HNB currency rates

Go to Invoicing > Configuration > Currency update providers create new provider : HR-HNB, and configure currencies.

HNB Provides 3 rates: buy, mid and sell. By default mid rate is covered, as it is only legaly required, but if you want to use buy or sell rate... there is a config parameter: currency_rate_update_hr_hnb.rate_type with values accepted: srednji | kupovni | prodajni

No verified information in OCA: Installation, Usage.

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.