create_record
Add new records to Odoo by specifying the model and field values. Use this tool to create customers, products, or other data entries in your Odoo database.
Instructions
Create a new record in Odoo.
Args:
model: The Odoo model name
values: Dictionary of field values for the new record
Returns:
Success message with the new record ID
Example:
Create customer: model='res.partner', values={'name': 'New Customer', 'email': 'new@example.com'}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"values": "<values>"
},
"name": "create_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| values | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |