Technical

Multi-Currency in Odoo Accounting: Rates, Payments and Revaluation

How Odoo handles foreign currency: rate storage and automatic updates, foreign-currency invoices and payments, realised and unrealised exchange differences, and a repeatable month-end revaluation routine.

Kalvyai Engineering · · Updated · 8 min read

Multi-Currency in Odoo Accounting: Rates, Payments and Revaluation (cover)
On this page

If you sell to customers or buy from suppliers in a currency other than your company currency, Odoo has to answer three questions on every document. Which rate applies? What is the amount worth in your books? What happens when the rate moves before the money arrives?

This post covers how Odoo stores rates, how to keep them up to date, how foreign-currency invoices and payments are posted, where realised and unrealised exchange differences come from, and how to run a clean month-end revaluation.

Menu paths and options move between Odoo versions and differ between Community and Enterprise. Where a detail depends on your version, confirm it on your own database.

How Odoo stores currency rates

Every company has one company currency. All journal items carry a balance in that currency (the debit, credit and balance fields). When a document is in another currency, each line also stores the original amount in amount_currency together with the currency_id.

Rates live in the res.currency.rate model. Three things matter:

  1. The date. The field is called name, but it holds a date. Odoo uses the most recent rate on or before the document date.
  2. The company. Rates can be set per company, so two companies in one database can use different rates for the same day.
  3. The direction. The stored rate is the number of units of the foreign currency per one unit of the company currency. The company currency itself has a rate of 1.

The direction is the most common source of mistakes. If your company currency is EUR and you enter a USD rate of 1.10, Odoo reads it as 1 EUR = 1.10 USD. A 1,000 USD invoice is then worth 1,000 / 1.10 = 909.09 EUR. Recent versions show the rate in both directions on the rate list to help with this.

Enabling multiple currencies

Before you can use a foreign currency you need to:

  1. Activate the currency itself. Inactive currencies do not appear in selection fields.
  2. Enable the multi-currency setting if your version has a separate toggle.
  3. Confirm the exchange difference journal and the gain and loss accounts.

Your fiscal localisation package usually creates the exchange difference journal and accounts. Check that they point to the accounts your accountant expects before you post anything.

Keeping rates up to date

You have three options.

1. Manual entry

Open the currency, go to its rates, and add a line with a date and a rate. This is fine for a company with one foreign currency and a policy of using a fixed monthly rate.

2. Automatic updates from a provider

Odoo can fetch rates on a schedule from a provider such as a central bank. You pick the provider and the interval in the accounting settings.

Things to confirm before you rely on it:

  • The provider publishes rates for every currency you use. Some central banks publish a limited list.
  • The interval matches your policy. A daily fetch is wrong if your accountant wants a single rate per month.
  • The scheduled action that runs the update is active. Check its last run date after the first few days.

3. Your own feed through the API

If your bank, treasury system or a regulator gives you the official rate, you can push it into Odoo yourself. Here is a small script that creates or updates a rate over XML-RPC. Use an API key for a dedicated user with accounting rights.

Python
import xmlrpc.client

URL = "https://your-odoo.example.com"
DB = "your-database"
USER = "api-user@example.com"
KEY = "your-api-key"

common = xmlrpc.client.ServerProxy(f"{URL}/xmlrpc/2/common")
uid = common.authenticate(DB, USER, KEY, {})
models = xmlrpc.client.ServerProxy(f"{URL}/xmlrpc/2/object")


def call(model, method, *args, **kwargs):
    return models.execute_kw(DB, uid, KEY, model, method, list(args), kwargs)


def set_rate(code, rate, date, company_id):
    """rate = units of `code` per 1 unit of company currency."""
    currency = call("res.currency", "search", [("name", "=", code)], limit=1)
    if not currency:
        raise ValueError(f"{code} not found or not active")

    domain = [
        ("currency_id", "=", currency[0]),
        ("name", "=", date),
        ("company_id", "=", company_id),
    ]
    existing = call("res.currency.rate", "search", domain, limit=1)
    values = {"rate": rate}
    if existing:
        call("res.currency.rate", "write", existing, values)
    else:
        values.update(currency_id=currency[0], name=date, company_id=company_id)
        call("res.currency.rate", "create", values)


# Company currency EUR: 1 EUR = 1.0850 USD on 2024-05-31
set_rate("USD", 1.0850, "2024-05-31", company_id=1)

The script searches only active currencies, which is what you want: it fails loudly instead of writing rates for a currency nobody uses. If your source quotes rates the other way round (1 USD = 0.9217 EUR), invert the value before you write it.

To check what is stored, a quick query on the database helps:

SQL
SELECT c.name AS currency, r.name AS rate_date, r.rate, r.company_id
FROM res_currency_rate r
JOIN res_currency c ON c.id = r.currency_id
WHERE c.name = 'USD'
ORDER BY r.name DESC
LIMIT 10;

Invoices and bills in foreign currency

When you set a currency on a customer invoice or vendor bill, Odoo converts each line at the rate valid on the invoice date. You see the amounts in the document currency on screen, and the journal items carry both values.

Example: company currency EUR, rate on 2 May is 1.10 USD per EUR.

Account

Amount in USD

Debit EUR

Credit EUR

Accounts receivable

1,000.00

909.09

Sales

-1,000.00

909.09

A few practical points:

  • The rate is fixed at posting. If you change the rate table after the invoice is posted, the invoice does not change. To use a different rate, reset to draft and post again, or correct with a credit note.
  • Backdated invoices use backdated rates. If you post an invoice dated last month, Odoo looks up last month's rate. Missing historical rates mean Odoo falls back to an older rate without warning you.
  • Customer and supplier defaults. You can set a pricelist in a foreign currency for a customer so quotations and invoices start in that currency.

In code, the standard way to convert an amount is _convert on res.currency. It applies the company's rate for the given date:

Python
usd = env.ref("base.USD")
eur = env.company.currency_id
amount_eur = usd._convert(1000.0, eur, env.company, fields.Date.today())

Use this in custom modules rather than reading rate yourself. It handles the direction, the company and rounding.

Payments in foreign currency

A payment is converted at the rate of the payment date. When it is reconciled with an invoice booked at a different rate, the two company-currency amounts do not match. Odoo posts the gap as an exchange difference.

Continuing the example, the customer pays 1,000 USD on 30 May when the rate is 1.05:

  • Payment value: 1,000 / 1.05 = 952.38 EUR
  • Invoice value: 909.09 EUR
  • Difference: 43.29 EUR

The USD amount is fully settled, but receivable still has a 43.29 EUR credit imbalance. On reconciliation Odoo creates an entry in the exchange difference journal:

Account

Debit EUR

Credit EUR

Accounts receivable

43.29

Exchange gain

43.29

This is a realised exchange difference. The cash has moved, so the gain is final.

Bank journals in a foreign currency

If you hold a USD bank account, set USD as the currency on its bank journal. Statement lines are then recorded in USD and converted at the line date. When you reconcile a USD statement line with a USD invoice, the exchange difference is created the same way.

If the bank account is in EUR but the invoice is in USD, the bank converts the money for you. Reconcile the EUR amount actually received against the USD invoice. Any gap between the bank's rate and Odoo's rate ends up as an exchange difference, which is correct: that is the real cost or gain of the conversion.

Partial payments

Each partial payment produces its own exchange difference for the portion it settles. A USD invoice paid in three instalments can have three exchange entries. That is expected, not a bug.

Unrealised exchange differences

At month-end you may still have open receivables, payables or foreign bank balances. Their value in your company currency has changed since they were posted, but no payment has fixed the result yet. That change is unrealised.

Example: the same 1,000 USD invoice is still open on 31 May, and the month-end rate is 1.12.

  • Booked value: 909.09 EUR
  • Value at month-end rate: 1,000 / 1.12 = 892.86 EUR
  • Unrealised loss: 16.23 EUR

Whether you must book this depends on your accounting standards and local rules. Many companies revalue monetary items (receivables, payables, foreign bank and cash) at each period end. Confirm the policy with your accountant before setting up the routine.

Month-end revaluation in Odoo

Odoo Enterprise has a report that lists unrealised currency gains and losses per account and can create the adjustment entry for you.

A typical routine:

  1. Load the closing rate. Make sure the rate for the last day of the month exists for every currency you hold. Check the rates list, not just the scheduled action.
  2. Finish reconciliation. Reconcile all payments and bank statement lines up to month-end. Anything left unreconciled is revalued, so stray unmatched items distort the result.
  3. Open the unrealised gains/losses report for the closing date and review it account by account. Look for accounts that should not be there, such as a payable with a currency set by mistake.
  4. Create the adjustment entry from the report. Choose the journal and the date, which is normally the last day of the period.
  5. Reverse it on the first day of the next period. The revaluation is a snapshot. Reversing it means the realised difference posted at payment time stays correct and you do not count the same movement twice.
  6. Lock the period once the entry is posted and reviewed.

With the example above, the 31 May entry books a 16.23 EUR loss against receivable, and the 1 June reversal undoes it. When the customer pays later, the realised difference is calculated against the original invoice rate as usual.

Accounts to include

The accounts you revalue should be monetary: receivables, payables, foreign bank and cash accounts. Income, expense, inventory and fixed asset accounts stay at historical rates. If the report includes accounts you do not expect, check whether a currency has been set on the account itself or whether manual entries were posted with an amount in currency.

Common problems and how to spot them

  • Rates entered upside down. Invoices show values that are roughly the square of what you expect, or the inverse. Compare one invoice by hand right after a rate change.
  • Missing rates for a date. Odoo uses the latest earlier rate. A broken scheduled action can leave you on a rate that is weeks old. Monitor the date of the last rate per currency.
  • Rates per company. In a multi-company database, a rate added in one company may not apply to another. Check the company on each rate line.
  • Exchange entries in the wrong accounts. Fix the gain and loss accounts in settings first. Existing entries need a correcting journal entry; changing the setting does not move them.
  • Unreconciled payments. A payment posted but not reconciled creates no realised difference and keeps the invoice open for revaluation. Review open items before closing.

How Kalvyai can help

We set up and fix multi-currency accounting in Odoo: rate feeds from the source your accountant trusts, foreign bank journals, exchange difference accounts, and a month-end routine your team can repeat. We also build checks that flag missing rates or unreconciled items before close, with human approval and an audit trail when an AI agent is involved. See our Odoo work at https://kalvyai.com/odoo and our ready-made apps at https://store.kalvyai.com.

If your exchange differences do not add up or you are planning to trade in a new currency, get in touch.

Share this article

Last updated 28 Nov 2026

  • Odoo
  • Accounting
  • Multi-Currency
  • Exchange Rates
  • Month-End Close
  • ERP

Kalvyai Engineering · Engineering team

The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.

Comments

No comments yet. Questions and corrections are welcome.

Rate this post or leave a comment

Your rating (optional)
Not rated

Comments appear after an editor approves them. See our privacy notice.

Read next

WhatsApp Coexistence for Odoo 19: Setup and User Guide (cover)User guide
Kalvyai EngineeringOdoo

WhatsApp Coexistence for Odoo 19: Setup and User Guide

How to install, connect and use WhatsApp Coexistence for Odoo 19 so your team keeps replying from the WhatsApp Business app while Odoo logs every message on the same number.

7 min read

Newsletter

Get new guides in your inbox.

Practical notes on Odoo, ERPNext, Shopify and AI agents, written by the engineers who build them. No spam, and you can ask to stop at any time.

Prefer a feed? Subscribe by RSS. We use your email only to send new articles. See our privacy policy.