Frends.Odoo.Request / 1.0.0
Summary
Calls a method on an Odoo model through its API, following Odoo's own model-and-method convention rather than REST paths, with positional and keyword arguments as Odoo expects.
Typical use — reading and writing Odoo business records, including the custom models an Odoo deployment usually grows
Input class contains parameters that are required.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Model | String |
res.partner |
res.partner |
Model to call in the request. You can get a list of Odoo model by calling the "ir.model" model with the "search_read" method and the fields "name", "model" and "state". |
| Method | String |
search_read |
res.partner |
Method to execute in the request. |
| Args | String |
[] |
[ "arg1", 1 ] |
Method arguments as JSON. |
| Kwargs | String |
{} |
{ "key1": "value1", "key2": "value2" } |
Method keyword arguments as JSON. |