Odoo 19.0 Community · Persistent

ir.ui.view: fields, relations and API

The ir.ui.view model ("View") is a persistent model declared by the Base module, then extended by 7 other modules. It exposes 43 fields, 31 of them declared directly on the model; 22 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.ui.view
Label
View
Type
Persistent (models.Model)
SQL table
ir_ui_view
Origin module
Base (base)
Extended by
web, html_editor, mail, portal, base_import_module, web_hierarchy, website
Default order (_order)
priority,name,id
Inherits from (mixins)
website.seo.metadata

Model fields

31 own fields, 6 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.

43 of 43 fields shown

Technical nameLabelTypeDetails
activeActive

If this view is inherited, * if True, the view always extends its parent * if False, the view currently does not extend its parent but can be enabled

boolean
archView Architecture

This field should be used when accessing view arch. It will use translation. Note that it will read `arch_db` or `arch_fs` if in dev-xml mode.

text
computed
arch_baseBase View Architecture

This field is the same as `arch` field without translations

text
computed
arch_dbArch Blob

This field stores the view arch.

text
arch_fsArch Filename

File from where the view originates. Useful to (hard) reset broken views or to read arch from file in dev-xml mode.

char
arch_prevPrevious View Architecture

This field will save the current `arch_db` before writing on it. Useful to (soft) reset a broken view.

text
arch_updatedModified Architectureboolean
controller_page_idsController Pageone2many

inverse: view_id

added by Website (website)

customize_showShow As Optional Inheritboolean

added by Customer Portal (portal)

first_page_idWebsite Page

First page linked to this view

many2one
computed

added by Website (website)

group_idsGroups

If this field is empty, the view applies to all users. Otherwise, the view applies to the users of those groups only.

many2many
inherit_children_idsViews which inherit from this oneone2many

inverse: inherit_id

inherit_idInherited Viewmany2one
invalid_locatorsInvalid Locatorsjson
computed
keyKeychar
modeView inheritance mode

Only applies if this view inherits from an other one (inherit_id is not False/Null). * if extension (default), if this view is requested the closest primary view is looked up (via inherit_id), then all views inheriting from it with this view's model are applied * if primary, the closest primary view is fully resolved (even if it uses a different model than this one), then this view's inheritance specs (<xpath/>) are applied, and the result is used as if it were this view's actual arch.

selection
required

Values: primary (Base view), extension (Extension View)

modelModelchar
model_data_idModel Datamany2one
computed
model_idModel of the viewmany2one
computed
nameView Namechar
required
page_idsPageone2many

inverse: view_id

added by Website (website)

prioritySequenceinteger
required
theme_template_idTheme Templatemany2one

added by Website (website)

trackTrack

Allow to specify for one page of the website to be trackable or not

boolean

added by Website (website)

typeView Typeselection

Values: list (List), form (Form), graph (Graph), pivot (Pivot), calendar (Calendar), kanban (Kanban), search (Search), qweb (QWeb)

visibilityVisibilityselection

Values: (Public), connected (Signed In), restricted_group (Restricted Group), password (With Password)

added by Website (website)

visibility_passwordVisibility Passwordchar

added by Website (website)

visibility_password_displayVisibility Password Displaychar
computed

added by Website (website)

warning_infoWarning informationhtml
computed
website_idWebsitemany2one

added by Website (website)

xml_idExternal ID

ID of the view defined in xml file

char
computed
is_seo_optimizedSEO optimizedboolean
computed, stored

inherited from website.seo.metadata

seo_nameSeo namechar
translatable

inherited from website.seo.metadata

website_meta_descriptionWebsite meta descriptiontext
translatable

inherited from website.seo.metadata

website_meta_keywordsWebsite meta keywordschar
translatable

inherited from website.seo.metadata

website_meta_og_imgWebsite opengraph imagechar

inherited from website.seo.metadata

website_meta_titleWebsite meta titlechar
translatable

inherited from website.seo.metadata

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.ui.view/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","mode","priority","inherit_id","theme_template_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.ui.view/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","mode","priority","inherit_id","theme_template_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-ui-view">ir.ui.view (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.