Skip to main content

Odoo Connector

Odoo Manage records in an Odoo database

Connections

Odoo Connection

Connect to your Odoo instance

Customers can use Odoo's cloud service to access an Odoo database, or they can run Odoo on their own servers. Either way, Odoo uses basic auth to connect to an Odoo database.

  • For Base URL, you can enter the URL you visit when you log in to Odoo (something like https://example-company.odoo.com).
  • You can likely ignore Server Port, unless your customer uses a non-traditional port for accessing their Odoo installation.
  • The Database Name can be found by clicking the user icon on the top-right within Odoo, and then selecting My Databases.
  • Username is the email address the user uses to log in. We recommend they create a system account for integrations (i.e. not a specific user's account).
  • Password or API Key can either be the password your customer uses to log in to Odoo, or they can generate an API key. To generate an API key, your customer will need to go into settings, enable developer mode, and then from their user preferences they can generate an API key. See https://www.odoo.com/documentation/14.0/developer/api/external_api.html#api-keys.
InputCommentsDefault
Odoo Base URLEnter the URL you visit when you log in to Odoo
Server PortLeave blank to use default HTTP (80) or HTTPS (443)
Odoo Database NameClick the user icon on the top-right within Odoo and then select 'My Databases'
Username
Password or API Key

Actions

Create Record

Create a new record of a given type

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
ParametersA JSON object of field names and values to set on the record.
External IDA unique identifier mapping this record to an ID in an external system.

Delete Record By ID

Delete a record by its numerical ID

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
Record IDThe ID of the record you want. Odoo uses numbers for record IDs.

Get Record by External ID

Get a record by its external ID

InputCommentsDefault
Connection
External IDA unique identifier mapping this record to an ID in an external system.

Get Record By ID

Fetch a Record by its numerical ID

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
Record IDThe ID of the record you want. Odoo uses numbers for record IDs.

List Model Fields

List all fields for a given model

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.

List Models

Fetch a list of models installed in the customer's Odoo database

InputCommentsDefault
Fetch All RecordsWhether to fetch all records.false
Name SearchSearch for models whose names contain this search term.
Model SearchSearch for models whose contain this search term.
Pagination LimitFetch only this many records at a time. See Pagination.
Pagination OffsetFetch records offset by this value. See Pagination.
Connection

List Records

Fetch a list of records of a given type

InputCommentsDefault
Fetch All RecordsWhether to fetch all records.false
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
Pagination LimitFetch only this many records at a time. See Pagination.
Pagination OffsetFetch records offset by this value. See Pagination.
Connection

Raw Request

Issue any execute_kw action

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
MethodThe action to execute in Odoo.
ParametersA JSON object of field names and values to set on the record.[["read"]]

Set External ID

Add an external ID to a record that does not have one

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
Record IDThe ID of the record you want. Odoo uses numbers for record IDs.
External IDA unique identifier mapping this record to an ID in an external system.

Update Record

Update an existing record of a given type

InputCommentsDefault
Connection
ModelThe type of record you would like to query for. Use the 'List Models' action for a list of available models.
Record IDThe ID of the record you want. Odoo uses numbers for record IDs.
ParametersA JSON object of field names and values to set on the record.