Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
10469 Vizualizări

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

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

"method": "execute",
"service": "object"
},
}
Imagine profil
Abandonează
Cel mai bun răspuns

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



Imagine profil
Abandonează
Cel mai bun răspuns
How can I put a range in this same query you describe?


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
feb. 25
1434
2
apr. 22
21021
1
mai 21
5176
0
oct. 20
4609
5
mai 25
33443