Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2348 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 23
5745
0
нояб. 23
1460
0
мар. 25
1593
1
окт. 23
1688
2
нояб. 22
3768