Odoo 19.0 Community · Persistent

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 nameLabelTypeDetails
abstractAbstract Modelboolean
access_idsAccessone2many

inverse: model_id

countCount (Incl. Archived)

Total number of records in this model

integer
computed
field_idFieldsone2many
required

inverse: model_id

fold_nameFold 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
infoInformationtext
inherited_model_idsInherited models

The list of models that extends the current model.

many2many
computed
is_mail_activityHas Mail Activityboolean

added by Discuss (mail)

is_mail_blacklistHas Mail Blacklistboolean

added by Discuss (mail)

is_mail_threadHas Mail Threadboolean

added by Discuss (mail)

is_mail_thread_smsMail Thread SMS

Whether this model supports messages and notifications through SMS

boolean
computed

added by SMS gateway (sms)

is_mailing_enabledMailing Enabled

Whether this model supports marketing mailing capabilities (notably email and SMS).

boolean
computed

added by Email Marketing (mass_mailing)

modelModelchar
required
modulesIn Apps

List of modules in which the object is defined or inherited

char
computed
nameModel Descriptionchar
requiredtranslatable
orderOrder

SQL expression for ordering records in the model; e.g. "x_sequence asc, id desc"

char
required
rule_idsRecord Rulesone2many

inverse: model_id

stateTypeselection
read-only

Values: manual (Custom Object), base (Base Object)

transientTransient Modelboolean
view_idsViewsone2many
computed
website_form_accessAllowed to use in forms

Enable the form builder feature for this model.

boolean

added by Website (website)

website_form_default_field_idField for custom form data

Specify the field which will contain meta and custom form fields datas.

many2one

added by Website (website)

website_form_keyWebsite Form Key

Used in FormBuilder Registry

char

added by Website (website)

website_form_labelLabel 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 (website)

create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

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
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}'
Python (requests)
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.