Overview
This node integrates with the Odoo API to perform create operations on custom resources within Odoo. It allows users to specify a custom resource model and define multiple fields with their values to create a new record in that model. This is useful for automating data entry and management in Odoo, such as creating new records for custom business objects or extending Odoo's functionality with custom models.
Use Case Examples
- Creating a new custom resource record in Odoo by specifying the model and fields to populate.
- Automating the creation of multiple records in a custom Odoo model by adding multiple fields and values in a workflow.
Properties
| Name | Meaning |
|---|---|
| Resource | The specific custom resource model in Odoo to operate on, selected from available models. |
| Fields | A collection of fields and their corresponding values to set when creating the new record in the custom resource model. |
Output
JSON
id- The unique identifier of the newly created record in the custom resource model.fieldName- The name of each field that was set during the creation.fieldValue- The value assigned to each field during the creation.
Dependencies
- Requires Odoo API credentials including URL, username, password, and database name to authenticate and interact with the Odoo instance.
Troubleshooting
- Ensure that the Odoo API credentials are correct and have sufficient permissions to create records in the specified custom resource model.
- Verify that the custom resource model name is valid and exists in the Odoo instance.
- Check that the field names and values provided match the schema of the custom resource model to avoid validation errors.
- Common error messages may include authentication failures, invalid model or field names, and data validation errors. Resolving these typically involves correcting credentials, model/field names, or data formats.
Links
- Odoo Official Documentation - Comprehensive resource for understanding Odoo models, API usage, and customization.