Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2344 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 23
5742
0
lis 23
1459
0
bře 25
1592
1
říj 23
1686
2
lis 22
3768