Overview
The Odoo Trigger node for n8n allows you to respond to events occurring in your Odoo instance by setting up webhooks. When a specified event (such as record creation, update, or deletion) happens on a chosen Odoo resource (model), the node triggers your workflow and passes the relevant data from Odoo into n8n.
Common scenarios:
- Automate downstream processes when new records are created in Odoo (e.g., new sales orders, contacts).
- Sync updates from Odoo to other systems in real time.
- Archive or process deleted records.
- Integrate Odoo with external services based on business events.
Practical examples:
- When a new customer is added in Odoo, automatically add them to a marketing platform.
- On invoice update, notify an accounting team via Slack.
- When a product is deleted, remove it from an e-commerce storefront.
Properties
| Name | Meaning |
|---|---|
| Resource Name or ID | Choose the Odoo model (resource) to monitor. You can select from a list of available models or specify an ID using an expression. |
| Trigger | The type of event that should trigger the webhook: - On Create - On Update - On Create And Update - On Delete |
Output
The node outputs the data received from Odoo as JSON. The structure of the output matches the record(s) sent by Odoo for the triggered event. Each output item contains the fields of the affected Odoo record at the time of the event.
Example output:
[
{
"id": 123,
"name": "Sample Record",
"field1": "value1",
"field2": "value2"
// ...other fields as present in the Odoo model
}
]
- If Odoo sends multiple records, each will be output as a separate item in the array.
Note: This node does not output binary data.
Dependencies
- Odoo API access: Requires valid Odoo credentials (URL, username, password, and optionally database name).
- n8n Credentials: You must set up an "odooApi" credential in n8n.
- Odoo server configuration: The Odoo instance must allow external automation and webhook calls.
Troubleshooting
Common issues:
- Invalid credentials: If the Odoo credentials are incorrect, authentication will fail. Error messages will indicate invalid settings or credentials.
- Node name contains spaces: The node cannot be named with spaces; otherwise, webhook registration will fail with an error:
"The name of the Odoo Trigger Node is not allowed to contain any spaces!" - Webhook not firing: Ensure the correct model and trigger event are selected, and that the Odoo instance is accessible from n8n.
Error messages and resolutions:
- "Credentials are not valid: ...": Double-check your Odoo URL, username, password, and database name.
- "Settings are not valid: ...": Review all connection details and ensure the Odoo server is reachable.
- "The name of the Odoo Trigger Node is not allowed to contain any spaces!": Rename the node in your workflow to remove spaces.