execute_method
Run a custom method on any Odoo model by specifying the model name, method, and optional arguments. Use it to trigger business logic or retrieve data beyond standard read operations.
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 | Optional positional method arguments. | |
| model | Yes | Technical Odoo model name, for example 'res.partner'. | |
| kwargs | No | Optional keyword method arguments. | |
| method | Yes | Odoo model method to call; direct create, write, and unlink are blocked. | |
| instance | No | Optional configured Odoo instance name; uses the default if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |