pub struct Execute {
pub model: String,
pub method: String,
pub args: Vec<Value>,
/* private fields */
}
Expand description
Call a business-logic method on an Odoo model (positional args)
This method allows you to call an arbitrary Odoo method (e.g. read
or
create
or my_function
), passing some arbitrary data, and returns the
result of that method call.
Note that the way this method handles keyword argument is unintuitive. If
you need to send kwargs
to an Odoo method, you should use ExecuteKw
instead
Fields§
§model: String
The model name
method: String
The method name (e.g. “read” or “create”)
args: Vec<Value>
The arguments (*args)
Trait Implementations§
source§impl JsonRpcParams for Execute
impl JsonRpcParams for Execute
type Container<T> = OdooApiContainer<Execute>
type Response = ExecuteResponse
fn build(self) -> JsonRpcRequest<Self>
source§impl OdooApiMethod for Execute
impl OdooApiMethod for Execute
source§fn describe(&self) -> (&'static str, &'static str)
fn describe(&self) -> (&'static str, &'static str)
Describe the JSON-RPC service and method for this type
source§fn _build(self) -> JsonRpcRequest<Self>
fn _build(self) -> JsonRpcRequest<Self>
Build
self
into a full JsonRpcRequest