call_onchange
Simulate a form change to get Odoo-computed values for your inputs without saving anything, so you can preview change results before writing.
Instructions
Simulate a form change and return the values Odoo would compute. Saves nothing.
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": "call_onchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Technical model name, e.g. 'res.partner' | |
| values | Yes | Current form values | |
| field_names | No | Fields that changed (default: keys of values) | |
| fields_spec | No | Optional onchange spec |