Allowed Actions
The 9 actions ODXProxy allows through to Odoo's execute_kw.
The action field must be one of these 9 values. Anything else is rejected with
HTTP 400 and JSON-RPC code -32001.
| Action | Meaning |
|---|---|
search_count | Count records matching a domain. |
search | Return record IDs matching a domain. |
read | Read fields for given IDs. |
fields_get | Describe a model's fields. |
search_read | Combined search + read. |
create | Create record(s). |
write | Update record(s) by ID. |
unlink | Delete record(s) by ID. |
call_method | Invoke an arbitrary model method named by fn_name. |
The action is passed straight through as the Odoo method name in execute_kw,
except for call_method, where fn_name is used instead.
call_method requires a non-empty fn_name. Omitting it returns HTTP 400
with JSON-RPC code -32002. Any model method outside this allowlist must be
invoked through call_method.