ع العربيةSign inBook a demoTry the demo

Connect Odoo with a read-only user

Use a dedicated Odoo user for reporting, so you can see and control exactly what it reads. We only ever read from Odoo; the steps below give that user the lowest access that lets it read each app.

Steps for your Odoo version

Odoo 12 to 16

  1. Sign in to Odoo as an administrator and open Settings › Users & Companies › Users, then press Create (New in Odoo 16).
  2. Give the user a name you will recognise, such as « Reports, read only », and an e-mail address as its login. Keep it an internal user.
  3. In the Access Rights tab, Accounting: in Odoo 14 to 16 Enterprise choose « Read-only » if the list offers it; otherwise choose « Billing », the lowest level that can read journal items.
  4. Sales: « User: All Documents », which also covers CRM; « User: Own Documents Only » would hide other salespeople's orders. Point of Sale, Purchase, Inventory and Manufacturing: « User ».
  5. If the database has several companies, add every company you want reported to « Allowed Companies ».
  6. Save. Odoo 14 to 16: set a password for the user, sign in as that user, open Preferences from the user menu, tab Account Security, press New API Key and copy the key.
  7. Odoo 12 and 13 have no API keys: use this user's login and password instead. Then enter the address, database and login in the connection form and press « Test connection ».

Odoo 17 and 18

  1. Sign in to Odoo as an administrator and open Settings › Users & Companies › Users, then press New.
  2. Give the user a name you will recognise, such as « Reports, read only », and an e-mail address as its login. Keep it an internal user.
  3. In the Access Rights tab, Accounting: in Enterprise choose « Read-only »; in Community choose « Billing » (Odoo 17) or « Invoicing » (Odoo 18), the lowest level that can read journal items.
  4. Sales: « User: All Documents », which also covers CRM. Point of Sale, Purchase, Inventory and Manufacturing: « User ».
  5. If the database has several companies, add every company you want reported to « Allowed Companies ».
  6. Save, set a password for the user and sign in as that user. Open Preferences from the user menu, tab Account Security, and press New API Key. Odoo 18 asks for a duration: users who are not administrators can choose up to 3 months.
  7. Copy the key, then enter the address, database, login and key in the connection form, with the expiry date if there is one, and press « Test connection ».

Odoo 19 and 20

  1. Sign in to Odoo as an administrator and open Settings › Users & Companies › Users, then press New.
  2. Give the user a name you will recognise, such as « Reports, read only », and an e-mail address as its login. In the Access Rights tab, set the role to « User ».
  3. Accounting: in Enterprise choose « Read-only »; in Community choose « Invoicing », the lowest level that can read journal items. Labels can differ slightly in Odoo 20: pick the lowest level that lets the user see the app.
  4. Sales: « User: All Documents », which also covers CRM. Point of Sale, Purchase, Inventory and Manufacturing: « User ».
  5. If the database has several companies, add every company you want reported to the user's « Companies » field.
  6. Save, set a password for the user and sign in as that user. Open My Preferences from the user menu, tab Security, and press Add API Key. Users who are not administrators can choose a duration of up to 3 months.
  7. Copy the key, then enter the address, database, login and key in the connection form, with the expiry date, and press « Test connection ». The JSON-2 method is chosen automatically.

About the API key

  • An API key replaces the password for programs. It cannot open the Odoo screens, and you can revoke it on its own without changing the user's password.
  • Create the key while signed in as the reporting user: Odoo lets each user create keys only for themselves.
  • Odoo shows the key once. Paste it straight into the connection form; we encrypt it on the server (AES-256-GCM) and never send it back to the browser.
  • From Odoo 18 keys expire. Enter the expiry date in the connection form, so the connection shows how many days are left and you can replace the key in time.
  • To revoke a key, delete it in the same Odoo screen. The connection then fails its next test until you enter a new key.

Odoo Online: Odoo allows its external API only on the « Custom » plan, not on « One App Free » or « Standard ». If the test says the API was refused, the plan is the reason. Odoo.sh and on-premise databases have the API.

A password works only over JSON-RPC and not for a user with two-step verification in Odoo. Odoo plans to remove JSON-RPC in Odoo 22, so use an API key whenever your version has one (Odoo 14 and later).

What « Test connection » checks

  • The address uses https, is public and is reachable. Private and internal addresses are refused.
  • The Odoo version and the connection method: JSON-RPC for Odoo 12 to 18, JSON-2 for Odoo 19 and later.
  • Sign-in with the key or password, then the companies with their currencies and the languages installed.
  • For each module, which Odoo models this user can read. An app that is not installed, or that the user cannot read, is named as such, never shown as zero.
  • Whether cost fields are visible, which margins need, and how many records each model holds.