Actions21
Overview
This node allows you to delete a Note resource in Odoo via the Odoo API. It is useful for automating the removal of notes from your Odoo system, for example, as part of a workflow that manages or cleans up records. Typical scenarios include deleting obsolete notes, removing notes based on certain criteria, or integrating note deletion into larger business processes.
Practical Example:
- Automatically delete a note after its content has been processed or archived elsewhere.
- Remove notes associated with records that are being deleted or anonymized for compliance reasons.
Properties
| Name | Meaning |
|---|---|
| Note ID | The unique identifier of the note to be deleted. This is required to specify which note will be removed from Odoo. |
Output
- The output will be a JSON object indicating the result of the delete operation. Typically, this may include a success confirmation or an error message if the operation fails.
- If an error occurs and "Continue On Fail" is enabled, the output will contain an
errorfield with the error message.
Example output (success):
[
{
"success": true
}
]
Example output (failure with Continue On Fail):
[
{
"error": "Record not found"
}
]
Dependencies
- Odoo API: Requires access to an Odoo instance with valid credentials (URL, username, password, and database name).
- n8n Credentials: You must configure Odoo API credentials in n8n under the name
odooApi.
Troubleshooting
Common Issues:
- Invalid Note ID: If the provided Note ID does not exist, the node will return an error such as
"Record not found". - Authentication Errors: If the Odoo credentials are incorrect or missing, you may see errors like
"Credentials are not valid"or"Settings are not valid". - Insufficient Permissions: The user account used must have permission to delete notes in Odoo; otherwise, you may receive a permissions error.
How to resolve:
- Double-check the Note ID for typos or ensure it exists in Odoo.
- Verify your Odoo credentials in n8n.
- Ensure the user has the necessary rights in Odoo to perform deletions.