Overview
This node integrates with the Odoo API to perform various operations on different resources within Odoo, such as contacts, notes, opportunities, and custom resources. It supports actions like creating, updating, deleting, retrieving single or multiple records, and triggering workflows on custom resources. This node is useful for automating business processes, managing CRM data, and interacting with Odoo ERP system programmatically within workflows.
Use Case Examples
- Create a new contact in Odoo with specified details.
- Update an existing opportunity with new information.
- Retrieve all notes with specific fields from Odoo.
- Trigger a custom workflow operation on a resource with additional parameters.
Properties
| Name | Meaning |
|---|---|
| Resource | The Odoo resource to operate on, e.g., custom resource, contact, note, opportunity. |
| ID | The identifier of the custom resource record to operate on, required for operations like get, update, delete, and workflow. |
| Custom Operation | The specific actionable method or workflow operation to trigger on the custom resource, e.g., action_confirm. |
| Kwargs (JSON Object) | Additional keyword arguments passed as a JSON object to the custom workflow operation method. |
Output
JSON
id- The unique identifier of the affected or retrieved record.name- The name or title of the record, if applicable.error- Error message if the operation failed and continueOnFail is enabled.otherFields- Other fields returned from Odoo depending on the operation and resource.
Dependencies
- Requires Odoo API credentials including URL, username, password, and database name.
Troubleshooting
- Invalid JSON in the Kwargs field will cause an error; ensure the JSON is valid and represents an object.
- Authentication errors if Odoo credentials are incorrect or missing.
- Operation failures if required parameters like resource ID or operation name are missing or invalid.
- Network or API errors if Odoo server is unreachable or returns errors.
Links
- Odoo Official Documentation - Comprehensive resource for understanding Odoo models, workflows, and API usage.