Actions20
Overview
The Tameson Odoo node for n8n allows you to interact with the Odoo API. Specifically, when using the Note resource and the Delete operation, this node deletes a note in your Odoo system based on its unique identifier. This is useful for automating the cleanup or management of notes within Odoo, such as removing outdated memos or handling data hygiene tasks.
Practical examples:
- Automatically delete notes after processing them in a workflow.
- Remove notes associated with records that are being archived or deleted.
- Clean up test or temporary notes created during automated processes.
Properties
| Name | Type | Meaning |
|---|---|---|
| Note ID | String | The unique identifier of the note to be deleted. This value must correspond to an existing note in Odoo. |
Output
The output will be a JSON object (or array of objects) representing the result of the delete operation. Typically, for a successful delete, the response may be empty or contain confirmation details depending on the Odoo API's behavior. If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.
Example output:
[
{}
]
Or, if an error occurs and "Continue On Fail" is enabled:
[
{ "error": "Record not found" }
]
Dependencies
- Odoo API: Requires access to an Odoo instance with appropriate permissions to delete notes.
- Credentials: You must configure Odoo API credentials (
odooApi) in n8n, including URL, username, password, and database name. - n8n Configuration: No special environment variables beyond standard credential setup.
Troubleshooting
Common issues:
- Invalid Note ID: If the provided Note ID does not exist, the node will throw an error such as "Record not found."
- Authentication errors: Incorrect Odoo credentials will result in authentication failures.
- Insufficient permissions: The user account used must have permission to delete notes in Odoo.
Error messages and resolutions:
"Credentials are not valid": Check your Odoo API credentials in n8n."Record not found": Ensure the Note ID exists in your Odoo instance."Settings are not valid: ...": Double-check the Odoo URL, database, and other connection settings.