Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
10643 Visualizzazioni

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

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

"method": "execute",
"service": "object"
},
}
Avatar
Abbandona
Risposta migliore

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})​
],​



Avatar
Abbandona
Risposta migliore
How can I put a range in this same query you describe?


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
feb 25
1609
2
apr 22
21147
1
mag 21
5274
0
ott 20
4740
5
mag 25
33734