Odoo icon

Odoo

Consume Odoo API

Actions6

Overview

This node integrates with the Odoo API to perform update operations on custom resources within Odoo. It allows users to specify a custom resource model, provide the ID of the record to update, and define multiple fields with new values to update that record. This is useful for automating updates to various Odoo models, such as updating product details, customer information, or any other custom data model managed in Odoo.

Use Case Examples

  1. Updating a product's price and description in Odoo by specifying the product model, product ID, and new field values.
  2. Modifying customer contact details by selecting the appropriate custom resource and providing updated field values.

Properties

Name Meaning
Resource The specific Odoo model (custom resource) to operate on, selected from available models via a dynamic load method.
ID The unique identifier of the record in the selected custom resource to update.
Update Fields A collection of fields and their new values to update on the specified record. Multiple fields can be updated in one operation.

Output

JSON

  • * - The updated record(s) returned from Odoo after the update operation

Dependencies

  • Requires Odoo API credentials including URL, username, password, and database name.

Troubleshooting

  • Ensure the Odoo API credentials are correct and have sufficient permissions to update records.
  • Verify that the custom resource model name and record ID are valid and exist in Odoo.
  • Check that the field names provided for update exist in the model and the values are of correct types.
  • Common errors include authentication failures, invalid model or record IDs, and malformed field data.

Links

Discussion