Odoo icon

Odoo

Consume Odoo API

Actions6

Overview

This node interacts with the Odoo API to perform operations on various resources, including custom resources. Specifically, for the 'Resource' resource and 'Get' operation, it retrieves a single record by its ID from a specified Odoo model. This is useful for fetching detailed information about a specific entity in Odoo, such as a custom model record, by providing its unique identifier. Practical applications include retrieving customer details, order information, or any custom data stored in Odoo for further processing or automation.

Use Case Examples

  1. Fetch a specific custom resource record by its ID to use its data in subsequent workflow steps.
  2. Retrieve detailed information about a particular entity in Odoo for reporting or integration purposes.

Properties

Name Meaning
customResource The specific Odoo model (custom resource) to operate on, selected from available models.
customResourceId The unique identifier of the record in the custom resource to retrieve. This is required for the 'Get' operation.
options.fieldsList Optional list of specific fields to include in the response when retrieving the record. Allows limiting the data returned to only relevant fields.

Output

JSON

  • id - The unique identifier of the retrieved record.
    - Other fields of the retrieved record as specified or all fields if none specified.

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 specified model and record.
  • Verify that the 'customResourceId' provided exists in the Odoo model; otherwise, the node may return an error or empty result.
  • If specifying fields in 'fieldsList', ensure the field names are valid for the selected model to avoid errors.

Links

Discussion