Actions21
Overview
The Tameson Odoo node for n8n allows you to interact with the Odoo API, specifically targeting the "Opportunity" resource.
For the "Create" Opportunity operation, this node enables users to create new sales opportunities (leads) in their Odoo CRM system directly from an n8n workflow.
Common scenarios:
- Automating lead creation when a new contact is added or a form is submitted.
- Integrating external systems (e.g., web forms, marketing tools) with Odoo CRM to streamline opportunity management.
- Enriching opportunities with additional data such as expected revenue, probability, and priority.
Practical example:
When a user submits a web form expressing interest in your product, n8n can use this node to automatically create a corresponding opportunity in Odoo, including details like name, email, phone, and expected revenue.
Properties
| Name | Type | Meaning |
|---|---|---|
| Name | String | The name of the opportunity. This is required and typically represents the lead title. |
| Additional Fields | Collection | Optional fields to further describe the opportunity. Includes: |
| String | Email address associated with the opportunity. | |
| Expected Revenue | Number | The anticipated revenue value for this opportunity. |
| Internal Notes | String | Any internal notes or description relevant to the opportunity. |
| Phone | String | Phone number linked to the opportunity. |
| Priority | Options | Priority level for the opportunity (1, 2, or 3). |
| Probability | Number | Probability (0–100) indicating the chance of closing the opportunity. |
Output
The node returns a JSON object representing the newly created opportunity in Odoo.
The structure typically includes all fields sent in the request, plus any additional fields returned by Odoo (such as the unique ID assigned to the opportunity).
Example output:
{
"id": 123,
"name": "New Website Project",
"email_from": "client@example.com",
"expected_revenue": 5000,
"description": "High-priority client",
"phone": "+1234567890",
"priority": "1",
"probability": 80,
... // other Odoo-specific fields
}
Note: The actual output fields may vary depending on your Odoo configuration.
Dependencies
- Odoo instance: You must have access to an Odoo server with the CRM module enabled.
- API Credentials: Requires valid Odoo API credentials (URL, username, password, database name).
- n8n Configuration: The node uses the
odooApicredential type, which must be set up in n8n.
Troubleshooting
Common issues:
- Invalid credentials: If the Odoo API credentials are incorrect, authentication will fail. Ensure URL, username, password, and database name are correct.
- Missing required fields: The "Name" property is mandatory. Omitting it will result in an error.
- Field validation errors: Providing invalid values (e.g., probability outside 0–100) will cause Odoo to reject the request.
- Connection errors: Network issues or incorrect Odoo URL can prevent communication.
Error messages:
"Credentials are not valid": Check your Odoo API credentials."Settings are not valid: ...": There may be a misconfiguration in your connection settings."error": "<message>"in output: IfContinue On Failis enabled, failed items will include anerrorfield with the message.