I try to invoke a json-rpc api call in Postman, everything works well, but I dont know how to pass the pagination params (offset, limit):
I try this raw JSON:
----------------------------------------------------
{
"jsonrpc": "2.0",
"method": "call",
"params": {
"service": "object",
"method": "execute",
"args": [
"user",
2,
"token",
"stock.move",
"search_read",
[
["product_id", "in", [3642]],
["state", "not in", ["draft", "cancel"]]
],
{"limit": 1}
]
},
"id": 1
}
----------------------------------------------------
but get the error:
"Invalid field 'limit' on model 'stock.move'"
The question is: How to pass offset and limit params in raw JSON query?
Hi,
Similar questions were found.
Please refer https://www.odoo.com/ja_JP/forum/herupu-1/odoo-json-filter-and-offset-parameter-162907
Hope it helps