Tameson Odoo icon

Tameson Odoo

Consume Odoo API

Actions20

Overview

The Tameson Odoo node for n8n allows you to interact with the Odoo API, specifically targeting various resources such as Contacts.
For the Contact → Get operation, this node retrieves detailed information about a specific contact in your Odoo system by its ID.
This is useful in scenarios where you need to fetch and process contact details within automated workflows, such as enriching data, synchronizing contacts between systems, or triggering actions based on contact information.

Example use cases:

  • Retrieve a contact's full profile from Odoo when a new support ticket is created.
  • Fetch specific fields (like email or phone) of a contact to send personalized notifications.
  • Integrate Odoo contact data into reports or dashboards.

Properties

Name Type Meaning
Contact ID String (text) The unique identifier of the contact to retrieve. This is required.
Options Collection Additional options for the request.
└ Fields to Include Multi-Options List of specific fields to include in the response. You can select from available fields or specify IDs using an expression.

Output

The output will be a JSON object containing the requested contact's data.

  • If "Fields to Include" is specified, only those fields will be present in the output.
  • Otherwise, the default set of contact fields will be returned.

Example output:

{
  "id": 123,
  "name": "John Doe",
  "email": "john.doe@example.com",
  "phone": "+1234567890"
  // ...other fields as requested
}
  • The structure and field names depend on your Odoo model and the selected fields.

Dependencies

  • Odoo API: Requires access to an Odoo instance with valid credentials (URL, username, password, database name).
  • n8n Credentials: You must configure Odoo API credentials in n8n under the name odooApi.

Troubleshooting

Common issues:

  • Invalid Credentials: If the Odoo API credentials are incorrect, authentication will fail. Ensure the URL, username, password, and database name are correct.
  • Contact Not Found: If the provided Contact ID does not exist, the node may return an empty result or an error.
  • Field Selection Errors: Specifying invalid or non-existent fields in "Fields to Include" may cause errors or missing data in the output.

Error messages:

  • "Credentials are not valid": Check your Odoo API credentials.
  • "Settings are not valid: ...": There may be a configuration issue; verify all connection parameters.
  • "Cannot read property '...' of undefined": Likely due to an incorrect Contact ID or missing fields.

Links and References

Discussion