Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Odoo

Connect to an Odoo Online or self-hosted instance to manage contacts, CRM leads, sales orders, invoices, and products over Odoo's JSON-RPC API.

Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

Connector
Authentication

Odoo

Credentials

Odoo

Connect to an Odoo Online or self-hosted instance with a database name, login, and API key to manage contacts, CRM leads, sales orders, invoices, and products.

Set up in Odoo

  1. Prepare the Odoo account or service that the workflow will access. Grant access to the required resources and operations.

  2. API Key: Generate in Odoo under your user avatar > Preferences > Account Security > New API Key. Confirm your password, add a description, then copy the key: it is shown only once. Requires Odoo 14+; no developer mode needed on Odoo 16+. The key grants exactly this user's own Odoo permissions, so connect a purpose-made, least-privilege user rather than an administrator account. Odoo Online (*.odoo.com) only allows API access on the Custom plan - One App Free and Standard cannot connect; self-hosted has no such restriction.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select Odoo.

  2. Enter the credentials and connection details in the fields below.

  3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

Instance URL

Yes

The origin of your Odoo instance, e.g. 'https://mycompany.odoo.com' for Odoo Online, or 'https://odoo.acme.com' for a self-hosted instance. No path or query string.

Database Name

Yes

The Odoo database this connection reads and writes. For Odoo Online this is the subdomain of your instance URL, e.g. 'mycompany' for 'https://mycompany.odoo.com'. For a self-hosted instance, ask your administrator.

Login

Yes

Email or username of the Odoo user this connection acts as. Every request runs with that user's own Odoo access rights and record rules.

API Key

Yes

Generate in Odoo under your user avatar > Preferences > Account Security > New API Key. Confirm your password, add a description, then copy the key: it is shown only once. Requires Odoo 14+; no developer mode needed on Odoo 16+. The key grants exactly this user's own Odoo permissions, so connect a purpose-made, least-privilege user rather than an administrator account. Odoo Online (*.odoo.com) only allows API access on the Custom plan - One App Free and Standard cannot connect; self-hosted has no such restriction. Provider instructions.

Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

Use an action

  1. Add the required Odoo action to the workflow.

  2. Select a connection when the action requests one.

  3. Complete the required fields. Use the reference picker when a value comes from another workflow step.

  4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

Actions

Search Contacts

Find customers, vendors, and companies in your Odoo contacts.

Inputs

Field
Type
Required
Description

Search

string

No

Match against name, email, or phone.

Email

string

No

Only return contacts with this email address.

Contact Type

select (string)

No

Limit to companies or to individual people. Available values: Any, Company, Individual. Default: any.

Show advanced fields

boolean

No

Reveal the modified-since filter and start offset. Default: false.

Modified Since

datetime

No

Only return contacts changed after this time.

Maximum Contacts

integer

No

Maximum number of contacts to return. Minimum: 1. Maximum: 200. Default: 50.

Start Offset

integer

No

Skip this many contacts before returning results. Minimum: 0. Default: 0.

Outputs

Field
Type
Description

Contacts

object_array

Matching Odoo contacts.

Next Offset

integer

Offset to use for the next page, empty when there are no more results.

Create Contact

Add a new customer, vendor, or company to Odoo.

Inputs

Field
Type
Required
Description

Name

string

Yes

Full name of the person, or the company name.

This is a company

boolean

No

Turn on to create a company rather than a person.

Email

string

No

Primary email address.

Phone

string

No

Primary phone number.

Job Position

string

No

The person's role at their company.

Company

select (string)

No

The company this person belongs to. Options load from the selected connection.

Show advanced fields

boolean

No

Reveal mobile, address, website, tax ID, and notes fields. Default: false.

Mobile

string

No

Mobile phone number.

Street

string

No

Street address.

City

string

No

City.

ZIP / Postal Code

string

No

Postal code.

Country

select (string)

No

Country for the address. Options load from the selected connection.

Website

string

No

Website URL.

Tax ID

string

No

VAT or tax identification number.

Internal Notes

textarea

No

Private notes visible only to your team.

Outputs

Field
Type
Description

Contact ID

integer

The id of the newly created contact.

Name

string

Name of the created contact.

Update Contact

Change details on an existing Odoo contact.

Inputs

Field
Type
Required
Description

Contact

select (integer)

Yes

The contact to update. Options load from the selected connection.

Name

string

No

New name for the contact.

Email

string

No

New email address, or empty to clear it.

Phone

string

No

New phone number, or empty to clear it.

Show advanced fields

boolean

No

Reveal mobile, address, website, and notes fields. Default: false.

Mobile

string

No

New mobile number, or empty to clear it.

Job Position

string

No

New job title, or empty to clear it.

Company

select (string)

No

Company this person belongs to. Options load from the selected connection.

Street

string

No

New street address, or empty to clear it.

City

string

No

New city, or empty to clear it.

ZIP / Postal Code

string

No

New postal code, or empty to clear it.

Country

select (string)

No

New country for the address. Options load from the selected connection.

Website

string

No

New website URL, or empty to clear it.

Internal Notes

textarea

No

Replace the private notes on this contact.

Outputs

Field
Type
Description

Contact ID

integer

The id of the updated contact.

Updated Fields

array

Names of the fields that were changed.

Search Leads

Find CRM leads and opportunities in your Odoo pipeline.

Inputs

Field
Type
Required
Description

Search

string

No

Match against the opportunity title, contact name, or email.

Type

select (string)

No

Limit to unqualified leads or to opportunities. Available values: Any, Lead, Opportunity. Default: any.

Stage

select (string)

No

Only return leads in this pipeline stage. Options load from the selected connection.

Salesperson

select (string)

No

Only return leads assigned to this user. Options load from the selected connection.

Customer

select (string)

No

Only return leads linked to this contact. Options load from the selected connection.

Status

select (string)

No

Limit to open, won, or lost leads. Available values: Open, Won, Lost, Any. Default: open.

Show advanced fields

boolean

No

Reveal the modified-since filter and start offset. Default: false.

Modified Since

datetime

No

Only return leads changed after this time.

Maximum Leads

integer

No

Maximum number of leads to return. Minimum: 1. Maximum: 200. Default: 50.

Start Offset

integer

No

Skip this many leads before returning results. Minimum: 0. Default: 0.

Outputs

Field
Type
Description

Leads

object_array

Matching leads and opportunities.

Next Offset

integer

Offset to use for the next page, empty when there are no more results.

Create Lead

Add a new lead or opportunity to your Odoo CRM pipeline.

Inputs

Field
Type
Required
Description

Title

string

Yes

Short title describing the opportunity.

Type

select (string)

No

Create an unqualified lead or a pipeline opportunity. Available values: Opportunity, Lead. Default: opportunity.

Customer

select (string)

No

Link this opportunity to an existing contact. Options load from the selected connection.

Contact Name

string

No

Name of the person to contact, when they are not yet an Odoo contact.

Email

string

No

Email address for the lead.

Phone

string

No

Phone number for the lead.

Company Name

string

No

Company name, when the company is not yet an Odoo contact.

Expected Revenue

number

No

Estimated deal value in your company currency.

Salesperson

select (string)

No

User who owns this opportunity. Options load from the selected connection.

Notes

textarea

No

Internal notes about this opportunity.

Show advanced fields

boolean

No

Reveal win probability and pipeline stage fields. Default: false.

Probability

number

No

Chance of winning, as a percentage.

Stage

select (string)

No

Pipeline stage to place this opportunity in. Options load from the selected connection.

Outputs

Field
Type
Description

Lead ID

integer

The id of the newly created lead.

Title

string

Title of the created lead.

Update Lead

Move an opportunity through your pipeline, or mark it won or lost.

Inputs

Field
Type
Required
Description

Lead

select (integer)

Yes

The lead or opportunity to update. Options load from the selected connection.

Mark As

select (string)

No

Close this opportunity. Lost archives it in Odoo: it disappears from the pipeline and from normal searches. To bring one back, open Odoo, filter for Archived, select the record and choose Action > Unarchive. Available values: No change, Won, Lost. Default: no_change.

Lost Reason

select (string)

No

Why the deal was lost. Only used when marking it lost. Options load from the selected connection.

Stage

select (string)

No

Move the opportunity to this pipeline stage. Options load from the selected connection.

Salesperson

select (string)

No

Reassign the opportunity to this user. Options load from the selected connection.

Expected Revenue

number

No

Updated deal value.

Show advanced fields

boolean

No

Reveal title, probability, and notes fields. Default: false.

Title

string

No

New title for the opportunity.

Probability

number

No

Updated chance of winning, as a percentage. Minimum: 0. Maximum: 100.

Notes

textarea

No

Replace the internal notes on this opportunity.

Outputs

Field
Type
Description

Lead ID

integer

The id of the updated lead.

Stage

string

Pipeline stage after the update.

Status

string

Whether the opportunity is now open, won, or lost.

Search Products

Look up products, their prices, and stock on hand.

Inputs

Field
Type
Required
Description

Search

string

No

Match against product name or internal reference.

Sellable products only

boolean

No

Hide products that cannot be sold. Default: true.

Maximum Products

integer

No

Maximum number of products to return. Minimum: 1. Maximum: 200. Default: 50.

Show advanced fields

boolean

No

Reveal the start offset. Default: false.

Start Offset

integer

No

Skip this many products before returning results. Minimum: 0. Default: 0.

Outputs

Field
Type
Description

Products

object_array

Matching products with price and stock.

Next Offset

integer

Offset to use for the next page, empty when there are no more results.

Create Sales Order

Raise a quotation or sales order for a customer, with line items.

Inputs

Field
Type
Required
Description

Customer

select (string)

Yes

The customer this order is for. Options load from the selected connection.

Line Items

textarea

Yes

The products and quantities to put on the order.

Confirm the order (reserves stock)

boolean

No

Leave off to create a draft quotation someone can review. Turning this on confirms the sale in Odoo immediately: it reserves stock from your inventory and makes the order invoiceable. This cannot be undone from StackAI - a person has to cancel or reset the order inside Odoo. Default: false.

Show advanced fields

boolean

No

Reveal customer reference, order date, salesperson, and notes fields. Default: false.

Customer Reference

string

No

The customer's own purchase order number.

Order Date

date

No

Date of the quotation. Defaults to today.

Salesperson

select (string)

No

User responsible for this order. Options load from the selected connection.

Terms and Notes

textarea

No

Notes shown to the customer on the quotation.

Outputs

Field
Type
Description

Order ID

integer

The id of the new sales order.

Order Reference

string

The order number Odoo assigned, for example S00042.

Status

string

Whether the order is a draft quotation or a confirmed order.

Total

number

Order total including taxes.

Search Sales Orders

Find quotations and sales orders and check their status.

Inputs

Field
Type
Required
Description

Search

string

No

Match against the order number or customer reference.

Customer

select (string)

No

Only return orders for this customer. Options load from the selected connection.

Status

select (string)

No

Limit to quotations, confirmed orders, or cancelled orders. Available values: Any, Quotation, Confirmed, Locked, Cancelled. Default: any.

Ordered On or After

date

No

Only return orders dated on or after this day.

Ordered On or Before

date

No

Only return orders dated on or before this day.

Maximum Orders

integer

No

Maximum number of orders to return. Minimum: 1. Maximum: 200. Default: 50.

Show advanced fields

boolean

No

Reveal the start offset. Default: false.

Start Offset

integer

No

Skip this many orders before returning results. Minimum: 0. Default: 0.

Outputs

Field
Type
Description

Sales Orders

object_array

Matching quotations and sales orders.

Next Offset

integer

Offset to use for the next page, empty when there are no more results.

Search Invoices

Find customer invoices or vendor bills and check what is still owed.

Inputs

Field
Type
Required
Description

Search

string

No

Match against the invoice number or reference.

Document Type

select (string)

No

Customer invoices, vendor bills, or credit notes. Available values: Customer Invoice, Vendor Bill, Customer Credit Note, Vendor Refund, Any. Default: customer_invoice.

Customer or Vendor

select (string)

No

Only return documents for this contact. Options load from the selected connection.

Payment Status

select (string)

No

Limit to unpaid, partly paid, or settled documents. Available values: Any, Not Paid, Partially Paid, In Payment, Paid, Reversed. Default: any.

Document Status

select (string)

No

Limit to draft, posted, or cancelled documents. Available values: Any, Draft, Posted, Cancelled. Default: posted.

Invoiced On or After

date

No

Only return documents dated on or after this day.

Invoiced On or Before

date

No

Only return documents dated on or before this day.

Due Before

date

No

Only return documents due before this day, to find overdue invoices.

Maximum Documents

integer

No

Maximum number of documents to return. Minimum: 1. Maximum: 200. Default: 50.

Show advanced fields

boolean

No

Reveal the document status and start offset. Default: false.

Start Offset

integer

No

Skip this many documents before returning results. Minimum: 0. Default: 0.

Outputs

Field
Type
Description

Invoices

object_array

Matching invoices and bills with amounts owed.

Next Offset

integer

Offset to use for the next page, empty when there are no more results.

Search Records

Read-only. Look up records from any Odoo table, including apps that do not have their own action here. It can never change or delete anything in Odoo.

Inputs

Field
Type
Required
Description

Odoo Model

select (string)

Yes

The Odoo table to read from. Options load from the selected connection.

Filters

textarea

No

Odoo filter conditions. Leave empty to return everything.

Fields

string

No

Comma-separated field names to return. Leave empty for a useful default set.

Maximum Records

integer

No

Maximum number of records to return. Minimum: 1. Maximum: 200. Default: 50.

Show advanced fields

boolean

No

Reveal sort order and start offset. Default: false.

Sort By

string

No

Field and direction to sort by.

Start Offset

integer

No

Skip this many records before returning results. Minimum: 0. Default: 0.

Outputs

Field
Type
Description

Records

object_array

Matching Odoo records.

Next Offset

integer

Offset to use for the next page, empty when there are no more results.

Create Record

Add one new record to any Odoo table, including apps that do not have their own action here. It never edits, deletes or unlinks an existing record, though linking one into a one-to-many field does move it under the new parent. Use a dedicated Create action when one exists.

Inputs

Field
Type
Required
Description

Odoo Model

select (string)

Yes

The Odoo table to add a record to. Options load from the selected connection.

Field Values

textarea

Yes

The field values for the new record, as JSON.

Outputs

Field
Type
Description

Record ID

integer

The id of the newly created record.

Name

string

How Odoo labels the new record.

Triggers

A trigger starts a workflow when its configured event occurs. Configure the event and filters before enabling the trigger.

New Record

Starts the workflow when a new record appears in an Odoo table you choose.

Pick the Odoo model to watch, for example crm.lead for opportunities or res.partner for contacts. Optionally add filter conditions to narrow which new records fire the workflow, and a comma-separated field list to limit what each event returns.

Configuration

Field
Type
Required
Description

Odoo Model

select (string)

Yes

Which Odoo table to watch for new records. Options load from the selected connection.

Filters

textarea

No

Only fire for records matching these conditions. Leave empty for all new records.

Fields

string

No

Comma-separated field names to include in the trigger output.

Event inputs

Field
Type
Required
Description

Record

object

Yes

The newly created Odoo record. Default: {}.

Record ID

integer

Yes

Id of the new record. Default: 0.

Odoo Model

string

Yes

The table the record was created in. Default: .

Created At

string

Yes

When Odoo created the record. Default: 0001-01-01 00:00:00+00:00.

Outputs

Field
Type
Description

Record

object

The newly created Odoo record.

Record ID

integer

Id of the new record.

Odoo Model

string

The table the record was created in.

Created At

datetime

When Odoo created the record.

Updated Record

Starts the workflow when a record changes in an Odoo table you choose.

Pick the Odoo model to watch, for example sale.order for orders or account.move for invoices. This fires on edits to existing records; new records are covered by the New Record trigger unless you turn on 'Also fire for newly created records'. Optionally add filter conditions to narrow which changes fire the workflow, and a comma-separated field list to limit what each event returns.

Configuration

Field
Type
Required
Description

Odoo Model

select (string)

Yes

Which Odoo table to watch for changes. Options load from the selected connection.

Filters

textarea

No

Only fire for records matching these conditions. Leave empty for all changes.

Also fire for newly created records

boolean

No

Turn off to fire only for edits to records that already existed. Default: false.

Fields

string

No

Comma-separated field names to include in the trigger output.

Event inputs

Field
Type
Required
Description

Record

object

Yes

The Odoo record as it looks after the change. Default: {}.

Record ID

integer

Yes

Id of the changed record. Default: 0.

Odoo Model

string

Yes

The table the record belongs to. Default: .

Updated At

string

Yes

When Odoo last changed the record. Default: 0001-01-01 00:00:00+00:00.

Outputs

Field
Type
Description

Record

object

The Odoo record as it looks after the change.

Record ID

integer

Id of the changed record.

Odoo Model

string

The table the record belongs to.

Updated At

datetime

When Odoo last changed the record.

Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.

Last updated

Was this helpful?