execute_method
Execute custom methods on Odoo models to directly interact with business logic, enabling automation and data retrieval without local module changes.
Instructions
Execute a custom method on an Odoo model
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>",
"method": "<method>"
},
"name": "execute_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| model | Yes | ||
| kwargs | No | ||
| method | Yes | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |