Actions21
Opportunity → Delete
AI-generatedOverview
This node allows you to delete an "Opportunity" record in Odoo via its API. It is useful for automating the removal of sales opportunities from your Odoo CRM, for example, when a deal is lost or needs to be cleaned up as part of a workflow. Typical scenarios include syncing opportunity data between systems, cleaning up test/demo data, or automating business processes that require deleting opportunities under certain conditions.
Properties
| Name | Meaning |
|---|---|
| Opportunity ID | The unique identifier of the Opportunity record in Odoo that you want to delete. This value is required and must correspond to an existing Opportunity in your Odoo instance. |
Output
- The output will be a JSON object indicating the result of the deletion operation.
- If successful, the response typically contains confirmation of deletion (often a boolean or the deleted record's ID, depending on Odoo's API response).
- If an error occurs and "Continue On Fail" is enabled, the output will contain an
errorfield with the error message.
Example success output:
[
{
"success": true
}
]
Example error output (if "Continue On Fail" is enabled):
[
{
"error": "Record not found"
}
]
Dependencies
- Odoo API: Requires access to an Odoo instance with API credentials (URL, username, password, database name).
- n8n Credentials: You must configure Odoo API credentials in n8n under the credential type
odooApi.
Troubleshooting
- Invalid Credentials: If the provided Odoo credentials are incorrect, you may see errors like
Credentials are not valid. Double-check your URL, username, password, and database name. - Record Not Found: If the specified Opportunity ID does not exist, the node may return an error such as
Record not found. - Insufficient Permissions: If the user does not have permission to delete opportunities, you may receive a permissions error from Odoo.
- Connection Issues: Network or server issues may cause timeouts or connection errors.
How to resolve:
- Ensure all credentials are correct and the user has sufficient rights.
- Verify the Opportunity ID exists in your Odoo system.
- Check network connectivity to your Odoo instance.
Links and References
- Odoo Documentation
- n8n Odoo Node Docs (if available)
- n8n Credentials Setup