Tameson Odoo icon

Tameson Odoo

Consume Odoo API

Overview

The Tameson Odoo node for n8n allows you to interact with the Odoo API, specifically targeting various resources such as Contacts, Notes, Opportunities, and Custom Resources.
For the selected configuration:

  • Resource: Opportunity
  • Operation: Delete

This node deletes an existing Opportunity in your Odoo system based on the provided Opportunity ID.
Common scenarios:

  • Automating the cleanup of outdated or invalid opportunities.
  • Integrating with other systems to remove opportunities when certain business conditions are met.
  • Bulk deletion of opportunities as part of data management workflows.

Example use case:
When a deal is lost in your CRM, you can automatically trigger this node to delete the corresponding opportunity from Odoo.


Properties

Name Type Meaning
Opportunity ID String The unique identifier of the Opportunity record in Odoo that you want to delete. (Required)

Output

  • The output will be a JSON array containing the result of the delete operation for each input item.
  • If the deletion is successful, the response will typically include confirmation details (such as the deleted record's ID or a success flag).
  • If an error occurs and "Continue On Fail" is enabled, the output will contain an object with an error field describing the issue.

Example output:

[
  {
    "result": true
  }
]

or, if failed and "Continue On Fail" is enabled:

[
  {
    "error": "Record not found"
  }
]

Dependencies

  • Odoo API: Requires access to an Odoo instance with API 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 Opportunity ID: If the provided ID does not exist, the node will return an error message like "Record not found".
  • Authentication errors: If the Odoo credentials are incorrect or missing, you'll see errors such as "Credentials are not valid" or "Settings are not valid".
  • Insufficient permissions: The user associated with the credentials must have permission to delete opportunities in Odoo.

How to resolve:

  • Double-check the Opportunity ID for typos or existence in Odoo.
  • Verify and test your Odoo API credentials in n8n.
  • Ensure the user has the necessary rights in Odoo to perform deletions.

Links and References

Discussion