Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Info

Oregional Odoo RestAPI endpoint: /orestapi/application/model

Query available models for an application


Tip

Odoo models can be made available at the Application screen


Table of Contents



Request

Code Block
languagebash
themeEmacs
titleSample request
linenumberstrue
https://odoo.dev.oregional.huexample.com/orestapi/application/model


ItemDescriptionNotes
endpoint/orestapi/application/model
typeGET
Header
authorization

Bearer access_token

Info: oRestAPI See ORESTAPI authorization header

Params
--No parameters necessary, it is enough to simply call the endpoint with a valid access_token




Response

Code Block
languagebash
themeMidnight
titleSample response
linenumberstrue
[{"name": "Contact", "model": "res.partner"}, {"name": "Lead/Opportunity", "model": "crm.lead"}]


Tip

Returns a list of dictionaries (key-value pairs)


ParentKeyTypeDefaultDescriptionNotes

modelstring-the technical name of the model (eg: res.partner, crm.lead, account.invoice, etc)Unique reference of the model, should be used in other API calls

namestring-the human readable name of the model (eg: Contact, Lead/Opportunity, Invoice, etc)This is what users should see