Run model method
odoo_executeCalls a method of an Odoo model with positional and keyword arguments, for example posting an invoice or confirming a sales order. Returns JSON with model, method and result. When write confirmation is enabled for the account, the method is not called and the result is a pending-action code with a description of the call.
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": "odoo_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Positional arguments of the method. | |
| model | Yes | Odoo model technical name. | |
| kwargs | No | Keyword arguments of the method. | |
| method | Yes | Name of the model method to call, e.g. 'action_post'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |