Actions20
Overview
This node integrates with the Odoo API to create a new record in a specified custom resource model within Odoo. It allows users to specify the custom resource model and provide multiple fields with their names and values to create a new entry. This is useful for automating data entry into Odoo's custom models, such as adding new products, custom entities, or any user-defined data structure in Odoo.
Use Case Examples
- Creating a new custom resource record in Odoo by specifying the model and fields to populate.
- Automating the creation of custom entries in Odoo from external data sources.
Properties
| Name | Meaning |
|---|---|
| Custom Resource | The specific Odoo model (custom resource) where the new record will be created. |
| Fields | A collection of field name and value pairs to set on the new record being created in the custom resource. |
Output
JSON
id- The unique identifier of the newly created record in the custom resource.fieldName- The name of each field set in the new record.fieldValue- The value assigned to each field in the new 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 create records in the specified custom resource.
- Verify that the custom resource model name is valid and exists in the Odoo instance.
- Check that the field names provided match the fields defined in the Odoo model and that the values are of the correct type.
- Common error messages may include authentication failures, invalid model or field names, or permission denied errors. Resolving these typically involves verifying credentials, model/field names, and user permissions in Odoo.
Links
- Odoo Official Documentation - Comprehensive resource for understanding Odoo models, fields, and API usage.
- Odoo API Documentation - Detailed guide on Odoo's API methods and how to interact programmatically with Odoo data.