Skip to content

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

@kalungia

Description

@kalungia

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions