Odoo icon

Odoo

Consume Odoo API

Actions20

Overview

This node integrates with the Odoo API to perform operations on various resources, including a Custom Resource. Specifically, for the Custom Resource with the 'Get' operation, it retrieves a single record by its ID from the specified custom model in Odoo. This is useful for fetching detailed information about a specific entity in a custom Odoo model, such as a custom business object or data record.

Use Case Examples

  1. Retrieve a customer record from a custom CRM model by its unique ID.
  2. Fetch details of a custom inventory item stored in a custom Odoo model.

Properties

Name Meaning
Custom Resource The specific custom Odoo model to operate on, selected from available models loaded dynamically.
Custom Resource ID The unique identifier of the record in the custom resource to retrieve.
Options Additional options for the get operation, such as selecting specific fields to include in the response.

Output

JSON

  • id - The unique identifier of the retrieved custom resource record.
  • fieldName - Values of the requested fields from the custom resource record.

Dependencies

  • Requires an Odoo API credential with URL, username, password, and database name to authenticate and interact with the Odoo instance.

Troubleshooting

  • Ensure the Odoo API credentials are correct and have sufficient permissions to access the custom model.
  • Verify the custom resource ID exists in the Odoo instance; otherwise, the get operation will fail or return no data.
  • If specific fields are requested, confirm they exist in the custom model to avoid errors.

Links

Discussion