跳至內容
選單
此問題已被標幟
2 回覆
10656 瀏覽次數

Is there any why to set limit and offset arguments in:

{
"params": {
"args": [
"odoo_db", "2", "a", "res.partner", "search", [], []
],

"method": "execute",
"service": "object"
},
}
頭像
捨棄
最佳答案

it depends on which library are you using as RPC Client how it's implemented extra args and kwargs
for python, it's work like

models = xmlrpc.client.ServerProxy('http://localhost:8069/xmlrpc/2/object')
res = models.execute_kw(db, uid, password, 'res.partner', 'search', [[]], {'limit':5, 'offset': 5})​

so maybe it's should be like 
"args": [
         "odoo_db", "2", "a", "res.partner", "search",  [[]], {'limit':5, 'offset': 5})​
],​



頭像
捨棄
最佳答案
How can I put a range in this same query you describe?


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
2月 25
1639
2
4月 22
21185
1
5月 21
5289
0
10月 20
4754
5
5月 25
33764