Actions20
Overview
The Tameson Odoo node for n8n allows you to interact with the Odoo API, specifically targeting the "Opportunity" resource in this context. The Get operation retrieves detailed information about a specific opportunity from your Odoo instance using its unique ID. This is useful for workflows where you need to fetch and process opportunity data, such as syncing CRM records, generating reports, or triggering follow-up actions based on opportunity status.
Example scenarios:
- Retrieve an opportunity's details to enrich data before sending it to another system.
- Fetch opportunity information for reporting or analytics.
- Use opportunity data to trigger conditional logic in your automation workflows.
Properties
| Name | Type | Meaning |
|---|---|---|
| Opportunity ID | String | The unique identifier of the opportunity you want to retrieve. Required. |
| Options | Collection | Additional options for the request. |
| └ Fields to Include | MultiOptions | Specify which fields of the opportunity to include in the response. You can select from available fields. |
Output
The output is a JSON object containing the details of the requested opportunity. The structure of the output depends on the fields selected in "Fields to Include". If no fields are specified, default fields are returned by Odoo.
Example output:
{
"id": 123,
"name": "Big Deal",
"stage_id": [4, "Qualified"],
"expected_revenue": 10000,
// ...other fields as requested
}
- Each key corresponds to a field in the Odoo opportunity model.
- The values reflect the current state of the opportunity in Odoo.
Dependencies
- Odoo API: Requires access to an Odoo instance with API enabled.
- Credentials: You must configure the
odooApicredential in n8n, including:- Odoo URL
- Database name (if applicable)
- Username
- Password
Troubleshooting
Common issues:
- Invalid credentials: If authentication fails, ensure your Odoo URL, database, username, and password are correct.
- Missing Opportunity ID: The "Opportunity ID" property is required. If omitted or incorrect, the node will throw an error.
- Field selection errors: Specifying invalid or non-existent fields in "Fields to Include" may result in incomplete or empty responses.
Error messages:
"Credentials are not valid": Check your Odoo credentials and try again."Settings are not valid: ...": There may be a configuration issue with your Odoo connection."Cannot read properties of undefined": Likely due to missing or incorrect input parameters.
Resolution steps:
- Double-check all input properties.
- Test your Odoo credentials in the n8n credential editor.
- Ensure the Opportunity ID exists in your Odoo instance.