İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2561 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 23
5925
0
Kas 23
1705
0
Mar 25
1830
1
Eki 23
1935
2
Kas 22
4005