How to find a record ID in Odoo
Been asked for a record ID by your support team or integration partner, and not sure where to find it?
Introduction
Most of the time you'll find records in Odoo by their name or reference, such as a customer name or a sales order number. But behind the scenes, every record also has a unique ID. These IDs become important when you're importing data, building an integration, setting up automations or raising a support ticket. In this guide we'll explain the different types of ID in Odoo 19 and show you three quick ways to find them.
What is a record ID?
Odoo uses two kinds of identifier:
- Database ID: a number that uniquely identifies a record within its model. For example, the customer with ID 42 is the 42nd contact record created. Database IDs are used by integrations, automation rules and support teams to pinpoint an exact record.
- External ID: a text identifier, such as
__export__.res_partner_42_abc123, used mainly for importing and updating data. Records created by Odoo itself or by modules also have external IDs, such asbase.main_company.
Each record also belongs to a model, which is the type of record, for example res.partner for contacts or sale.order for sales orders. You'll often need the model name and the ID together.
Step-by-step guide
Method 1: Read the ID from the address bar
- Open the record in Odoo, for example a sales order.
- Look at the URL in your browser's address bar. In Odoo 19 it ends with the record's ID, for example
/odoo/sales/42. - The number at the end is the database ID.
This is the quickest method and doesn't need any special access.
Method 2: Use developer mode for full details
- Go to the Settings app, scroll to the bottom and click Activate the developer mode.
- Open the record you're interested in.
- Click the bug icon at the top of the screen to open the developer tools menu.
- Select Metadata.
A window shows the record's ID, its external ID (XML ID), and who created and last updated it, and when.
Method 3: Export IDs for many records at once
- Go to the list view of the records you need, for example Contacts.
- Select the records, click Actions and choose Export.
- Tick I want to update data (import-compatible export) and add the ID field.
- Click Export to download a file containing each record's external ID.
This is the best method when you're preparing to update records in bulk by import.
Step 4: Turn developer mode off again
When you're finished, go back to Settings and click Deactivate the developer mode. This keeps the interface tidy for everyday use.
Common use cases
- Support tickets: give your support partner the model and ID so they can find the exact record straight away.
- Data imports: use external IDs to update existing records instead of creating duplicates.
- Integrations: map records between Odoo and another system, such as an ecommerce platform or 3PL.
- Automations and reports: reference a specific record, such as a particular warehouse or journal, in a rule or filter.
Tips for success
- Always share the model with the ID. ID 42 could be a contact, a product or an invoice, so include both.
- Use developer mode carefully. It gives access to technical settings, so turn it off when you've found what you need.
- Keep external IDs consistent. If you import data regularly, using your own external IDs makes updates much safer.
Why understanding IDs in Odoo helps
- Faster support: problems can be found and fixed more quickly.
- Cleaner data: imports update the right records instead of creating duplicates.
- Reliable integrations: every system refers to exactly the same record.
- Transparency: metadata shows who created and changed each record, and when.
A basic understanding of IDs makes everyday administration and troubleshooting much smoother.
Final thoughts
Record IDs aren't something most users need every day, but when you do need one, knowing where to look saves time for you and anyone helping you. The address bar is the quickest route, and developer mode gives you the full picture. If you need help with data imports, integrations or troubleshooting in Odoo, our team is here to help.
