User Roles Admin✗Staff user ✗External contributor ✗Pulse user 

This article explains how to connect Silverfin with Odoo to synchronise bookkeeping data at the firm level. With one developer key, one sync covers all your Odoo Online databases. Once the connection is established, any changes made in Odoo will sync with Silverfin.


Table of contents 

What do I need to know before I set up the Odoo sync?

  • Only users with admin rights in Silverfin can set up synchronisation at the firm level.
  • Silverfin supports Odoo version 15 and newer.
  • Silverfin only syncs journal entries with the status Posted. Draft entries, and entries kept in a custom status such as an approval step, are not synced.
  • Odoo.sh is a customisable version of Odoo and is not officially supportedby Silverfin. The connection usually works, because Silverfin only reads standard accounting data through the standard Odoo API. It keeps working as long as:
    • You tick Connect with a single-database API key, Odoo On-premise or Odoo.sh and enter the URL and the exact name of your production database. Do not connect a staging or development branch, because Odoo.sh rebuilds those databases.
    • Silverfin can reach the Odoo API over the internet. An IP restriction, a single sign-on gateway or any other login placed in front of Odoo blocks the connection. Silverfin only signs in with the email address and the API key.
    • The Odoo user linked to the API key can read all accounting data for every company and branch you want to sync. Silverfin never writes to Odoo, so read-only access is enough.
    • No custom record rules hide journals or journal entries from this user. Odoo leaves hidden entries out without an error, so they will be missing in Silverfin.
    • Custom modules do not remove or rename standard accounting fields.
    • Accounts use the standard Odoo account types. Opening balances are not calculated for accounts with a custom type.
    • Support for Odoo.sh is limited. Silverfin cannot see your custom modules or your Odoo.sh setup, so we cannot check these conditions for you. If the connection fails or data is missing after a change in your Odoo setup, check the points above with your Odoo partner first.

Which API key do I use?

Silverfin connects to Odoo with an API key. Odoo has two types:

  • Developer key: created in your odoo.com account, under Developer API Keys on your security page. It gives access to all Odoo Online databases of that account, so one sync covers all of them. A developer key expires after at most 6 months and Silverfin cannot renew this for now, so create a new one in time and replace it in Silverfin.
  • Single-database API key: created inside one Odoo database, under Preferences > Account Security. It gives access to that one database only. It works for Odoo Online, Odoo On-premise and Odoo.sh. Tick Connect with a single-database API key, Odoo On-premise or Odoo.sh and fill in the database URL and the database name. On Odoo 19 and newer, Silverfin renews this key automatically before it expires.

You can find the complete step-by-step guide in the Odoo help article.

How do I replace an API key?

Only users with admin rights can do this. Click Syncs under Firm configuration, select the Odoo sync and click Sync settings. For the automatic renewal, the Odoo user linked to the key must keep the access rights they had when the sync was set up. On Odoo On-premise or Odoo.sh, the system parameter base.enable_programmatic_api_keys must also be set to True.

How do I set up the connection with Odoo at the firm level?

To establish the connection with Odoo at the firm level, follow these steps:

  1. Click Syncs in the left panel, under Firm configuration.
  2. Click the Add new sync button and choose Bookkeeping sync.
  3. From the drop-down menu, choose Odoo sync and click Connect.
  4. Fill in the fields.
    • Name: the name you give to the sync entity.
    • Email address: the email address of your Odoo account. It must be the login that created the API key. If that login is a username, change it to the email address in Odoo first.
    • API key: the developer key or single-database API key created in Odoo. See Which API key do I use?
  5. Do you use a single-database Odoo, Odoo On-premise or Odoo.sh? Tick Connect with a single-database API key, Odoo On-premise or Odoo.sh and fill in the extra fields.
    • Odoo Database URL: the URL of your Odoo database, for example https://company-name.odoo.com or https://odoo.mycompany.be. Note: the URL must start with https:// and must not end with /odoo.
    • Odoo Database name: the exact name of your database, for a single-database API key, Odoo On-premise or Odoo.sh. This field is not required with a developer key. The name is case-sensitive. See How do I find the database name in Odoo?
  6. Click Check for databases. Silverfin checks your information and shows a message. For Odoo Online, it shows how many databases it found. Each company in them becomes a reference for a client file. With Connect with a single-database API key, Odoo On-premise or Odoo.sh ticked, it shows Connected!
  7. Click Set up Odoo connection. This button replaces Check for databases after a successful check.

Note: if you change a field after the check, Check for databases comes back. Click it again before you set up the connection.

Good to know: a saved sync cannot switch between Odoo Online databases and a database URL.

Do you see a message or an error during setup or syncing? See How to solve the most common errors received while synchronising with Odoo?

Once the synchronisation exists at the firm level, it can be linked to a client file. Linking does not require admin rights: both the Admin and Staff user roles can do this. See How do I set up synchronisation with Odoo in a client file?

What access rights does the Odoo user need?

The Odoo user linked to the API key must have sufficient access rights, otherwise the connection may fail to set up or synchronise. As a minimum, that user needs Show Full Accounting Features - Read Only access. Higher permission levels also work.

How do I find the database name in Odoo?

  • You only need the database name for Odoo Single database, On-premise or Odoo.sh. These fields are not required with a developer key.
  • With a single-database API key, Odoo On-premise or Odoo.sh, the database name is usually different from the URL. Enter the exact name in the Odoo Database name field. The name is case-sensitive.

To find the name:

Your Odoo administrator or partner can also tell you the exact name.

Odoo database names are not publicly visible for security reasons, which means Silverfin cannot retrieve them. If you have any questions or cannot determine your database name, contact Odoo or your Partner support directly, as they are able to look it up for you.