Actions21
Overview
The Tameson Odoo node for n8n allows you to interact with the Odoo API, specifically targeting the "Note" resource in this context. The Update operation enables users to modify an existing note by specifying its ID and providing new memo content. This is useful in scenarios where you need to programmatically update notes within your Odoo system, such as synchronizing information from another source or automating updates based on workflow triggers.
Practical examples:
- Automatically updating a note's content when related data changes in another system.
- Bulk-updating memos for multiple notes as part of a data migration or cleanup process.
Properties
| Name | Type | Meaning |
|---|---|---|
| Note ID | String | The unique identifier of the note to be updated. Required. |
| Memo | String | The new content for the note's memo field. Required. |
Output
The output will be a JSON object representing the updated note. The structure typically includes fields returned by the Odoo API for the note resource, such as:
{
"id": "123",
"memo": "Updated memo content",
// ...other note fields as provided by Odoo
}
If an error occurs and "Continue On Fail" is enabled, the output may include:
{
"error": "Error message"
}
Dependencies
- Odoo API: Requires access to an Odoo instance with appropriate permissions to update notes.
- Credentials: You must configure Odoo API credentials (URL, username, password, database name) in n8n under the credential type
odooApi.
Troubleshooting
Common issues:
- Invalid Credentials: If the Odoo API credentials are incorrect, authentication will fail. Ensure all credential fields are accurate.
- Missing Note ID: If the specified Note ID does not exist, the update will fail. Double-check that the Note ID is valid.
- Insufficient Permissions: The user account used for the API connection must have permission to update notes in Odoo.
Common error messages:
"Credentials are not valid": Check your Odoo API credentials."Settings are not valid: ...": There may be a configuration issue; verify the Odoo URL and database name."error": "Error message"in output: Indicates a runtime error during the update; review the error details for guidance.