Odoo icon

Odoo

Consume Odoo API

Overview

This node allows you to delete a Contact in Odoo via its API. It is useful for automating the removal of contact records from your Odoo instance directly from n8n workflows. Common scenarios include cleaning up outdated or duplicate contacts, or integrating with other systems where contact deletion needs to be synchronized.

Practical Example:
You might use this node in a workflow that listens for contact deletion events in another CRM and automatically removes the corresponding contact in Odoo by providing the Contact ID.

Properties

Name Meaning
Contact ID The unique identifier of the contact to delete. This value is required and must match an existing contact in your Odoo system.

Output

  • The output will be a JSON object indicating the result of the deletion operation.
  • If successful, it typically returns a confirmation (such as a boolean or status).
  • If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message.

Example output on success:

[
  {
    "success": true
  }
]

Example output on failure (with Continue On Fail):

[
  {
    "error": "Contact 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

  • Invalid Credentials:
    Error: "Credentials are not valid"
    Solution: Double-check your Odoo URL, username, password, and database name in the n8n credentials.

  • Contact Not Found:
    Error: "Contact not found"
    Solution: Ensure the Contact ID provided exists in your Odoo system.

  • Permission Denied:
    Error: "Access denied" or similar
    Solution: Make sure the user associated with the credentials has permission to delete contacts.

  • Connection Issues:
    Error: Network or timeout errors
    Solution: Verify network connectivity between n8n and your Odoo server.

Links and References

Discussion