Guide for Odoo 19

Prepare Odoo 19 step by step, with an API key or the kiosk link.

This page gives the click paths of Odoo 19 in English. Background on rights, expiry and badges is on the pages Technical user and API key, Kiosk link and Badge ID, PIN and time zone.

Who this is for

HostingAPI keyKiosk link
Own serveryes, recommendedyes
Odoo.shyes, recommendedyes
Odoo Online, Custom planyes, recommendedyes
Odoo Online, Standard or One App Free planno, the interface is blockedyes

A trial on Odoo Online mostly behaves like Custom. If the connection test reports ODOO-23, use the kiosk link.

Before you start

  1. The Attendances app is installed.
  2. You have an Odoo login with administrator rights.
  3. You know the address of Odoo. If your own server holds several databases, also the database name (ODOO-17).

Way A: API key

Creating the technical user

  1. Open “Settings” → “Users & Companies” → “Users” and click “New”.
  2. Enter a name, for example Klockix Time Clock, and a login, for example [email protected].
  3. On the “Access Rights” tab, leave “Role” at “User”.
  4. Under “Human Resources”, set “Employees” to “Officer: Manage all employees” and “Attendances” to “Administrator”.
  5. Leave all other apps empty and save.
  6. With several companies, allow under “Companies” all companies whose employees clock in at the device.

Odoo 19: user Klockix Stempeluhr with the rights for Employees and Attendances

Odoo Online counts the technical user as a user in the subscription.

Setting a password

  1. In the user form, open the “Security” tab and click “Change password”.
  2. Enter a new password and confirm it.

Generating the API key

  1. Sign in with the login and this password in a private browser window.
  2. Click the profile picture at the top right and open “My Preferences”.
  3. On the “Security” tab, click “Add API Key”.
  4. In the window “Access Control”, enter the password and click “Confirm Password”.
  5. Under “Name your key”, enter Klockix. The device recognises its key by this name and reads its expiry date.
  6. Under “Give a duration for the key's validity”, choose “3 Months”. Odoo 19 allows no longer duration for a user without administrator rights.
  7. Click “Generate key”, copy the key at once, click “Done!” and sign out.

Odoo 19: window “API Key Ready”, key made unreadable

For a device connected to the Fleet Console the partner enters the key in the console. For a directly connected device it goes into the field “API key” on the device.

Expiry and renewal

  • API keys of the technical user expire after 90 days at most. Odoo then deletes the key.
  • 14 and 3 days before, the Fleet Console reports the expiry (ODOO-21).
  • To renew, generate a new key as above, enter it, then delete the old key on the “Security” tab under “API Keys”.
  • Once the key has expired, the device stores the bookings and sends them with the new key (ODOO-22).
  1. Open “Attendances” → “Configuration” → “Settings”.
  2. Scroll to the section “Kiosk Settings”.
  3. At “Attendance Kiosk Url”, click the icon on the right of the field. Odoo copies the link.

Odoo 19: kiosk settings with the kiosk URL, token made unreadable

  • “Generate new URL” makes the old link invalid at once. Devices with the old link then show ODOO-28.
  • The link is valid for one company. With several companies each has its own link.
  • The selection “Without badge: choose name” on the device asks for a PIN only when “Employee PIN Identification” is on.
  • On your own server Odoo must recognise the database from the address: exactly one database or a set dbfilter. Otherwise the kiosk link does not work.

Badge ID, PIN and time zone

  1. Open “Employees” and choose the person.
  2. On the “Settings” tab, under “Attendance/Point of Sale”, click into the field “RFID/Badge Number” and hold the badge to the USB reader.
  3. For the selection without a badge, enter a PIN under “PIN Code”.
  4. On the same tab, under “User”, set “Timezone” to the time zone of the site, for example “Europe/Berlin”.
  5. Save.

Odoo 19: employee form with badge number, PIN and time zone, PIN made unreadable

What is special about Odoo 19

  • The device talks to Odoo 19 through the new JSON-2 interface. Nothing needs to be set up for it in Odoo.
  • On Odoo Online the device finds the database by itself from the address.
  • API keys expire after 90 days at most. Only an administrator can create a key without expiry, and the technical user should not get administrator rights.
  • Odoo 19 no longer rejects shifts across the clock change.
  • Odoo Online can move a database to a newer version at any time. The device checks the version daily and adapts by itself.

Common error codes

  • ODOO-17: database not found. Enter the database name.
  • ODOO-20: user or API key wrong.
  • ODOO-21 and ODOO-22: the API key is about to expire or has expired.
  • ODOO-23: Odoo Online without the Custom plan. Use the kiosk link.
  • ODOO-24 and ODOO-26: the technical user lacks rights.
  • ODOO-25: the Attendances app is not installed.
  • ODOO-28: the kiosk link was generated anew.
  • ODOO-31: Odoo rejected a booking.
  • ODOO-35: with the kiosk link Odoo is not reachable, nothing was recorded.