Odoo icon

Odoo

Consume Odoo API

Overview

The Odoo Node for n8n allows you to interact with the Odoo API, specifically targeting various resources such as Notes.
For the Note → Update operation, this node updates an existing note in your Odoo system by its ID and sets a new memo (content) for that note.

Common scenarios:

  • Automating the process of updating notes based on workflow triggers.
  • Synchronizing note content from other systems into Odoo.
  • Bulk-updating memos for notes as part of data migration or cleanup tasks.

Example use case:
You have a workflow where customer feedback is collected via a form, and you want to update a corresponding note in Odoo with the latest feedback automatically.


Properties

Name Meaning
Note ID The unique identifier of the note to update.
Memo The new content/text to set for the note's memo field.

Output

The output will be a JSON object representing the updated note.
Typical fields may include:

{
  "id": 123,
  "memo": "Updated note content",
  // ...other note fields as returned by Odoo
}

If an error occurs and "Continue On Fail" is enabled, the output will contain:

{
  "error": "Error message"
}

Dependencies

  • Odoo instance: You must have access to an Odoo server with the appropriate modules enabled.
  • API Credentials: Requires odooApi credentials (URL, username, password, and database name) configured in n8n.
  • n8n Configuration: No special environment variables are required beyond standard credential setup.

Troubleshooting

Common issues:

  • Invalid Note ID: If the provided Note ID does not exist, the node will throw an error indicating the record was not found.
  • Authentication errors: Incorrect Odoo credentials will result in authentication failures.
  • Missing required fields: Both "Note ID" and "Memo" are required; omitting them will cause validation errors.

Error messages and resolutions:

  • "Credentials are not valid": Check your Odoo URL, username, password, and database name.
  • "Settings are not valid: ...": There may be a misconfiguration in your credentials or Odoo server settings.
  • "Record not found" or similar: Ensure the Note ID exists in your Odoo instance.

Links and References

Discussion