Skip to content

What it is for

The Odoo component connects your ERP to flooows to create contacts, companies, leads and quotations, read or update any model and post messages to the chatter. Use it to send web leads to the CRM, sync customers or react to new sales orders.

Triggers check Odoo periodically every few minutes and start the flow for each new or updated record, contact, lead or sales order.

Set up the connection

Authentication type: Custom credentials

  1. 1In Odoo click your avatar > My Profile (or Preferences) > Account Security tab and create a new API key; copy it, as it is shown only once.
  2. 2In flooows add an Odoo step, click "Connect" and enter your instance address in "Odoo URL".
  3. 3In "Odoo Database" enter the database name; on Odoo Online it usually matches the subdomain (mycompany in mycompany.odoo.com).
  4. 4Fill "Odoo Username" with your login (usually your email) and "Odoo API Key" with the key.
  5. 5Leave "Port (optional)" empty unless you use a special port, then save.
Connection fieldTypeRequired
Odoo URLTextYes
Odoo DatabaseTextYes
Odoo UsernameTextYes
Odoo API KeySecret keyYes
Port (optional)NumberNo

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • "Create Lead or Opportunity" needs a "Title" and accepts "Email", "Phone" or "Expected Revenue" mapped from a form.
  • "Custom Search and read records" uses the technical "Model" name (for example res.partner) and "Search domains" to filter.
  • "Custom Create Record" and "Custom Update Record" take "Fields and Values" as an object using technical field names.
  • "Post Chatter Message" adds a note to the selected "Record".

Tips

  • •External API access on Odoo Online requires the Custom plan.
  • •Use a user with only the permissions the flow needs.
  • •Turn on Odoo developer mode to see technical model and field names.

Triggers (5)

Events that can start a flow. Expand each one to see its fields.

New RecordPeriodic check3 fields
FieldTypeRequired
ModelList (from your account)Yes
Filter domainJSONNo
FieldsList of valuesNo
New or Updated RecordPeriodic check3 fields
FieldTypeRequired
ModelList (from your account)Yes
Filter domainJSONNo
FieldsList of valuesNo
New ContactPeriodic check1 fields
FieldTypeRequired
Contact TypeFixed listNo
New Lead or OpportunityPeriodic check2 fields
FieldTypeRequired
TypeFixed listNo
Sales TeamList (from your account)No
New Sales OrderPeriodic check1 fields
FieldTypeRequired
Fire OnFixed listNo

Actions (15)

Operations available as flow steps. Expand each one to see its fields.

Get contacts2 fields
FieldTypeRequired
TypeFixed listYes
Contact NameTextNo
Create contact5 fields
FieldTypeRequired
Contact NameTextYes
Contact PhoneTextYes
Contact E-mailTextYes
Company NameTextYes
Job TitleTextYes
Create company3 fields
FieldTypeRequired
Company NameTextYes
Company PhoneTextYes
Company E-mailTextYes
Custom Search and read records6 fields
FieldTypeRequired
ModelTextYes
Search domainsJSONNo
FieldsList of valuesNo
OffsetNumberNo
LimitNumberNo
Sort OrderTextNo
Custom Create Record2 fields
FieldTypeRequired
ModelTextYes
Fields and ValuesJSONYes
Custom Update Record3 fields
FieldTypeRequired
ModelTextYes
Record IDNumberYes
Fields and ValuesJSONYes
Custom API Call3 fields
FieldTypeRequired
ModelTextYes
MethodFixed listYes
method_paramsDynamic fieldsYes
Get Record3 fields
FieldTypeRequired
ModelList (from your account)Yes
RecordList (from your account)Yes
FieldsList of valuesNo
Delete Record2 fields
FieldTypeRequired
ModelList (from your account)Yes
Record to DeleteList (from your account)Yes
Run Record Action4 fields
FieldTypeRequired
ModelList (from your account)Yes
RecordList (from your account)Yes
Action (method name)TextYes
Extra ArgumentsJSONNo
Post Chatter Message4 fields
FieldTypeRequired
ModelList (from your account)Yes
RecordList (from your account)Yes
MessageLong textYes
Post AsFixed listYes
Attach File to Record4 fields
FieldTypeRequired
ModelList (from your account)Yes
RecordList (from your account)Yes
FileFileYes
File NameTextNo
Create Lead or Opportunity13 fields
FieldTypeRequired
TitleTextYes
TypeFixed listNo
CustomerList (from your account)No
Contact NameTextNo
Company NameTextNo
EmailTextNo
PhoneTextNo
Expected RevenueNumberNo
StageList (from your account)No
SalespersonList (from your account)No
Sales TeamList (from your account)No
Expected ClosingDate and timeNo
NotesLong textNo
Create Quotation4 fields
FieldTypeRequired
CustomerList (from your account)Yes
Order LinesList of valuesYes
Customer ReferenceTextNo
Expiration DateDate and timeNo
Find Invoices11 fields
FieldTypeRequired
TypeMulti-selectNo
StatusFixed listNo
Payment StatusMulti-selectNo
Customer / VendorList (from your account)No
Number or Reference ContainsTextNo
Invoice Date FromDate and timeNo
Invoice Date ToDate and timeNo
Due Date FromDate and timeNo
Due Date ToDate and timeNo
LimitNumberNo
OffsetNumberNo

Common errors

Access denied or expired key.

Create a new API key in Odoo and update the connection.

Database not found.

Check "Odoo Database" in the database manager or ask your admin.

Invalid field on a model.

Use the technical field name, not the visible label.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps