Overview
This node interacts with the Odoo API to perform operations on various resources, including custom resources. Specifically, for the 'Delete' operation on the 'Resource' resource, it deletes a record identified by a given ID from the specified custom resource model in Odoo. This is useful for automating the removal of records in Odoo, such as deleting obsolete or incorrect entries programmatically.
Use Case Examples
- Deleting a customer record from a custom resource model in Odoo by specifying the resource name and the record ID.
- Automating cleanup tasks by deleting outdated entries from a custom resource in Odoo through workflow automation.
Properties
| Name | Meaning |
|---|---|
| Resource | The specific custom resource model in Odoo to operate on, selected from available models loaded dynamically. |
| ID | The unique identifier of the record in the custom resource model to delete. |
Output
JSON
id- The ID of the deleted record or confirmation of deletion.result- The result or status of the delete operation returned from Odoo API.
Dependencies
- Requires Odoo API credentials including URL, username, password, and database name.
Troubleshooting
- Ensure the Odoo API credentials are correct and have sufficient permissions to delete records.
- Verify that the resource name corresponds to a valid Odoo model and the ID exists in that model.
- Common errors include authentication failures, invalid resource names, or attempting to delete non-existent records. Check error messages for details and verify input parameters.
Links
- Odoo Official Documentation - Comprehensive resource for understanding Odoo models and API usage.