07aa7b0af09a8405836e30ffa2dc449fca665676
Since commit [1], we can have list or kanban view with same limit and count_limit (to save a costly search_count), i.e. have a pager like "1-80/80+". Before this commit, when reaching the count limit on page next, we performed the search_count. This was fine before as the count_limit was hardcoded to 10k, so you basically never did page next until the limit. However, it's a issue now that the count_limit can be specified, as in the above example, we don't want to slow down the loading of the second page records because of the search_count. With this commit, we slightly increase the count limit when we reach it, so for instance doing next when the pager shows 1-80/80+ fetches the records with args offset=80, limit=80, count_limit=160 and the pager then shows 81-160/160+. If the total number of records is reached, we know the count and display it, for instance, after another pager next: 161-190/190. The same logic applies when the pager is manually edited, e.g. when you write 1-150 in a pager showing 1-80/80+, you'll get 1-150/150+ if there are more than 150 records. [1] 699215ec9a71b8c9b6a53fe96e924a400d216729 Task 3162026 X-original-commit: d39559274e6de6cdba6972775f9bda8bd2de8fa6 Part-of: odoo/odoo#113134
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%