Skip to Content
मेन्यू
This question has been flagged
1 Reply
2253 Views

I have 9800 records but when querying a table I only get the first page of 5000 records from API. It seems like pagination is not working. Is there any any particular property you should configure for your account so you can get pagination working--or should it work by default?

Avatar
Discard
Best Answer

Hello,
Offset and limit parameters are available to only retrieve a subset of all matched records.


For example: 
model_ids = self.env[model_name].search([], offset=10, limit=10)

Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
मार्च 23
5646
0
नव॰ 23
1370
0
मार्च 25
1482
1
अक्तू॰ 23
1575
2
नव॰ 22
3634