What is an external ID in Odoo?
what is an external id and what is its uses

An External ID (also called XML ID) is a string identifier that uniquely identifies a particular record in Odoo. It is used as a reference to an object, data, or entity so modules are not tied into the IDs directly.

Import and export External ID

They become important when you plan to import data into Odoo.

When you import data, if you supply an External ID, Odoo checks if this record already exists.  If it does not, that line of your import file becomes an INSERT.  If it does exist, that line of your import file becomes an UPDATE.  If you don't supply an External ID (you leave it blank, or just don't supply the field at all), Odoo creates one automatically for you.

When you export data, Odoo will ensure External ID's are present for every record in the export file, so you can update the file and import it back into Odoo (using the rules above).

Implementation of External ID

They are stored in the 'ir.model.data' model and are not given to records that are created via the Odoo user interface - only for records that are imported (External ID is created or read on import) or exported (External ID is created on export if it doesn't exist already).

Odoo external IDs editor in developer mode

Administrator tools

You can see the External ID for a record in Developer Mode using the View Metadata option in the Debug Menu. You are free to update all external values and configure the system.


What is an external ID in Odoo?
ویراوب ۱۲۳, مصطفی برمشوری 26 August, 2021
Share this post
Our blogs
Sign in to leave a comment
What is Postfix Admin?
Postfix based email server manager