ir.model: fields, relations and API
The ir.model model ("Models") is a persistent model declared by the Base module, then extended by 8 other modules. It exposes 30 fields, 24 of them declared directly on the model; 39 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.
Model identity
- Technical name
ir.model- Label
- Models
- Type
- Persistent (models.Model)
- SQL table
ir_model- Origin module
- Base (
base) - Extended by
- web, bus, mail, sms, spreadsheet, website, mass_mailing, marketing_card
- Default order (_order)
is_mail_thread DESC, name ASC
Model fields
24 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
30 of 30 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| abstract | Abstract Model | boolean | |
| access_ids | Access | one2many | inverse: |
| count | Count (Incl. Archived) Total number of records in this model | integer | computed |
| field_id | Fields | one2many | required inverse: |
| fold_name | Fold Field In a Kanban view where columns are records of this model, the value of this (boolean) field determines which column should be folded by default. | char | |
| info | Information | text | |
| inherited_model_ids | Inherited models The list of models that extends the current model. | many2many→ ir.model | computed |
| is_mail_activity | Has Mail Activity | boolean | added by Discuss ( |
| is_mail_blacklist | Has Mail Blacklist | boolean | added by Discuss ( |
| is_mail_thread | Has Mail Thread | boolean | added by Discuss ( |
| is_mail_thread_sms | Mail Thread SMS Whether this model supports messages and notifications through SMS | boolean | computed added by SMS gateway ( |
| is_mailing_enabled | Mailing Enabled Whether this model supports marketing mailing capabilities (notably email and SMS). | boolean | computed added by Email Marketing ( |
| model | Model | char | required |
| modules | In Apps List of modules in which the object is defined or inherited | char | computed |
| name | Model Description | char | requiredtranslatable |
| order | Order SQL expression for ordering records in the model; e.g. "x_sequence asc, id desc" | char | required |
| rule_ids | Record Rules | one2many→ ir.rule | inverse: |
| state | Type | selection | read-only Values: |
| transient | Transient Model | boolean | |
| view_ids | Views | one2many | computed |
| website_form_access | Allowed to use in forms Enable the form builder feature for this model. | boolean | added by Website ( |
| website_form_default_field_id | Field for custom form data Specify the field which will contain meta and custom form fields datas. | many2one | added by Website ( |
| website_form_key | Website Form Key Used in FormBuilder Registry | char | added by Website ( |
| website_form_label | Label for form action Form action label. Ex: crm.lead could be 'Send an e-mail' and project.issue could be 'Create an Issue'. | char | translatable added by Website ( |
| create_date | Created on | datetime | read-onlyautomatic |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- ir.model: inherited_model_ids
- ir.model.access: access_ids
- ir.model.fields: field_id, website_form_default_field_id
- ir.rule: rule_ids
- ir.ui.view: view_ids
Fields of other models pointing here
- base.automation: model_id
- base.language.export: model_id
- base.module.uninstall: model_ids
- calendar.event: res_model_id
- data_recycle.model: res_model_id
- data_recycle.record: res_model_id
- fetchmail.server: object_id
- gamification.goal.definition: model_id, model_inherited_ids
- ir.actions.actions: binding_model_id
- ir.actions.report: model_id
- ir.actions.server: available_model_ids, crud_model_id, model_id, update_related_model_id
- ir.model: inherited_model_ids
- ir.model.access: model_id
- ir.model.constraint: model
- ir.model.fields: model_id
- ir.model.inherit: model_id, parent_id
- ir.model.relation: model
- ir.rule: model_id
- ir.ui.view: model_id
- mail.activity: res_model_id
- mail.activity.plan: res_model_id
- mail.activity.schedule: res_model_id
- mail.alias: alias_model_id, alias_parent_model_id
- mail.template: model_id
- mail.template.preview: model_id
- mailing.filter: mailing_model_id
- mailing.mailing: mailing_model_id
- privacy.lookup.wizard.line: res_model_id
- rating.rating: parent_res_model_id, res_model_id
- sms.template: model_id
- sms.template.preview: model_id
- spreadsheet.dashboard: main_data_model_ids
Reading this model through the API
Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.
curl -X POST "https://your-instance.odoo.com/json/2/ir.model/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["name","model","order","state","website_form_default_field_id"],"limit":5}'import requests
BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}
res = requests.post(
f"{BASE_URL}/ir.model/search_read",
headers=headers,
json={"domain": [], "fields": ["name","model","order","state","website_form_default_field_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())- External API access requires Odoo's Custom plan.
- XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
- The access rights and record rules of the key's user apply.
Cite this tool
Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.
<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/ir-model">ir.model (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.0 Community
Have an Odoo project, or want to put your ERP to work with AI? Let's talk
Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.