OCA / odoorpc

Python module to pilot your Odoo servers through JSON-RPC.
http://pythonhosted.org/OdooRPC/
GNU Lesser General Public License v3.0
231 stars 123 forks source link

How to Add Start point of Search and End Point #94

Open kalungia opened 7 months ago

kalungia commented 7 months ago

Hello,

Am looking for a way to get data based on id example I want to get data starting from id 10 to 302, or 534 to 760. If I ran the code below it will give me a time out if I have a lot of data, how can I set the start and end point of getting data?

    User = odoo.env['res.partner']
    ids = User.search([])
    for rec in User.browse(ids):
        print(rec.name)