execute_method
Execute methods on Odoo 19 models to perform operations like creating, updating, or retrieving data, with write methods blocked in readonly mode.
Instructions
Execute any method on an Odoo model.
Args: model: Model name (e.g., 'res.partner') method: Method name to execute args: Positional arguments for the method kwargs: Keyword arguments for the method
Returns: JSON string with the method result
Note: In READONLY_MODE, write methods (create, write, unlink, copy) are blocked.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| method | Yes | ||
| args | No | ||
| kwargs | No |