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
- 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.
- 2In flooows add an Odoo step, click "Connect" and enter your instance address in "Odoo URL".
- 3In "Odoo Database" enter the database name; on Odoo Online it usually matches the subdomain (mycompany in mycompany.odoo.com).
- 4Fill "Odoo Username" with your login (usually your email) and "Odoo API Key" with the key.
- 5Leave "Port (optional)" empty unless you use a special port, then save.
| Connection field | Type | Required |
|---|---|---|
| Odoo URL | Text | Yes |
| Odoo Database | Text | Yes |
| Odoo Username | Text | Yes |
| Odoo API Key | Secret key | Yes |
| Port (optional) | Number | No |
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
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Filter domain | JSON | No |
| Fields | List of values | No |
New or Updated RecordPeriodic check3 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Filter domain | JSON | No |
| Fields | List of values | No |
New ContactPeriodic check1 fields
| Field | Type | Required |
|---|---|---|
| Contact Type | Fixed list | No |
New Lead or OpportunityPeriodic check2 fields
| Field | Type | Required |
|---|---|---|
| Type | Fixed list | No |
| Sales Team | List (from your account) | No |
New Sales OrderPeriodic check1 fields
| Field | Type | Required |
|---|---|---|
| Fire On | Fixed list | No |
Actions (15)
Operations available as flow steps. Expand each one to see its fields.
Get contacts2 fields
| Field | Type | Required |
|---|---|---|
| Type | Fixed list | Yes |
| Contact Name | Text | No |
Create contact5 fields
| Field | Type | Required |
|---|---|---|
| Contact Name | Text | Yes |
| Contact Phone | Text | Yes |
| Contact E-mail | Text | Yes |
| Company Name | Text | Yes |
| Job Title | Text | Yes |
Create company3 fields
| Field | Type | Required |
|---|---|---|
| Company Name | Text | Yes |
| Company Phone | Text | Yes |
| Company E-mail | Text | Yes |
Custom Search and read records6 fields
| Field | Type | Required |
|---|---|---|
| Model | Text | Yes |
| Search domains | JSON | No |
| Fields | List of values | No |
| Offset | Number | No |
| Limit | Number | No |
| Sort Order | Text | No |
Custom Create Record2 fields
| Field | Type | Required |
|---|---|---|
| Model | Text | Yes |
| Fields and Values | JSON | Yes |
Custom Update Record3 fields
| Field | Type | Required |
|---|---|---|
| Model | Text | Yes |
| Record ID | Number | Yes |
| Fields and Values | JSON | Yes |
Custom API Call3 fields
| Field | Type | Required |
|---|---|---|
| Model | Text | Yes |
| Method | Fixed list | Yes |
| method_params | Dynamic fields | Yes |
Get Record3 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Record | List (from your account) | Yes |
| Fields | List of values | No |
Delete Record2 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Record to Delete | List (from your account) | Yes |
Run Record Action4 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Record | List (from your account) | Yes |
| Action (method name) | Text | Yes |
| Extra Arguments | JSON | No |
Post Chatter Message4 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Record | List (from your account) | Yes |
| Message | Long text | Yes |
| Post As | Fixed list | Yes |
Attach File to Record4 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Record | List (from your account) | Yes |
| File | File | Yes |
| File Name | Text | No |
Create Lead or Opportunity13 fields
| Field | Type | Required |
|---|---|---|
| Title | Text | Yes |
| Type | Fixed list | No |
| Customer | List (from your account) | No |
| Contact Name | Text | No |
| Company Name | Text | No |
| Text | No | |
| Phone | Text | No |
| Expected Revenue | Number | No |
| Stage | List (from your account) | No |
| Salesperson | List (from your account) | No |
| Sales Team | List (from your account) | No |
| Expected Closing | Date and time | No |
| Notes | Long text | No |
Create Quotation4 fields
| Field | Type | Required |
|---|---|---|
| Customer | List (from your account) | Yes |
| Order Lines | List of values | Yes |
| Customer Reference | Text | No |
| Expiration Date | Date and time | No |
Find Invoices11 fields
| Field | Type | Required |
|---|---|---|
| Type | Multi-select | No |
| Status | Fixed list | No |
| Payment Status | Multi-select | No |
| Customer / Vendor | List (from your account) | No |
| Number or Reference Contains | Text | No |
| Invoice Date From | Date and time | No |
| Invoice Date To | Date and time | No |
| Due Date From | Date and time | No |
| Due Date To | Date and time | No |
| Limit | Number | No |
| Offset | Number | No |
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
