Odoo icon

Odoo

Consume Odoo API

Actions20

Overview

This node interacts with the Odoo API to perform operations on the 'Opportunity' resource, specifically the 'Get All' operation. It allows users to retrieve multiple opportunity records from Odoo, either returning all available records or limiting the number of results. This is useful for scenarios where a user needs to fetch a list of sales opportunities for reporting, analysis, or integration with other systems.

Use Case Examples

  1. Retrieve all sales opportunities to generate a sales pipeline report.
  2. Fetch a limited number of opportunities to display recent deals in a dashboard.

Properties

Name Meaning
Return All Whether to return all opportunity records or only up to a specified limit.
Limit The maximum number of opportunity records to return when 'Return All' is false.
Options Additional options for the request, such as selecting specific fields to include in the response.

Output

JSON

  • id - Unique identifier of the opportunity record.
  • name - Name of the opportunity.
  • otherFields - Additional fields of the opportunity as specified in the 'Fields To Include' option or default fields returned by Odoo.

Dependencies

  • Requires an Odoo API key credential with URL, username, password, and database name for authentication.

Troubleshooting

  • Common issues include authentication failures due to incorrect credentials or URL, which result in errors indicating invalid credentials.
  • If the 'Return All' option is set to false and the limit is set too high, the node may time out or return partial data depending on Odoo server settings.
  • Errors may occur if requested fields in 'Fields To Include' do not exist or are misspelled; ensure field names are correct and available in the Odoo model.

Links

Discussion