pub struct ExecuteKw {
pub model: String,
pub method: String,
pub args: Vec<Value>,
pub kwargs: Map<String, Value>,
/* private fields */
}
Expand description
Call a business-logic method on an Odoo model (positional & keyword args)
This method is very similar to execute
; It 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.
This differs from execute
in that keyword args (kwargs
) can be passed.
Reference: odoo/service/model.py
Fields§
§model: String
The model name
method: String
The method name (e.g. “read” or “create”)
args: Vec<Value>
The arguments (*args)
kwargs: Map<String, Value>
The keyword-argments (**kwargs)
Trait Implementations§
source§impl JsonRpcParams for ExecuteKw
impl JsonRpcParams for ExecuteKw
type Container<T> = OdooApiContainer<ExecuteKw>
type Response = ExecuteKwResponse
fn build(self) -> JsonRpcRequest<Self>
source§impl OdooApiMethod for ExecuteKw
impl OdooApiMethod for ExecuteKw
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