odoo_call_method
Invoke any method on an Odoo model to execute workflow actions missing from dedicated tools, like moving invoices to draft or approving budgets.
Instructions
Call ANY method on an Odoo model -- the universal escape hatch.
Use this for workflow actions the dedicated tools don't wrap yet, e.g. odoo_call_method("account.move", "button_draft", [123]) or odoo_call_method("project.budget", "action_approve", [7]). ids may be empty for @api.model methods that don't act on records.
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_call_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| args | No | ||
| model | Yes | ||
| kwargs | No | ||
| method | Yes |