跳至內容
選單
此問題已被標幟
1 回覆
2284 瀏覽次數

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?

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 23
5672
0
11月 23
1400
0
3月 25
1529
1
10月 23
1622
2
11月 22
3654