summaryrefslogtreecommitdiff
path: root/doc/reference/views.rst
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2019-03-13 15:42:52 +0000
committerAaron Bohy <aab@odoo.com>2019-04-02 11:55:57 +0000
commit2be28d4d033b5930e5a16ff02407315a116e9043 (patch)
tree0561dbbf8c127d0aea94c6766c6815fe1d1f2d83 /doc/reference/views.rst
parent5895d23cbd26beb3bc3c83cc760b3cdbb64b0e85 (diff)
[IMP] web,board: enable pagination in grouped lists
With this rev., when there are a lot of groups in a grouped list view, groups are displayed under several pages, whereas they were all displayed in the same page before. This is especially interesting with the new 'expand' attribute, to ensure that we don't read records for a large number of groups. By default, the groups limit is set to 80 (like records), and to 10 is the 'expand' attribute is set to true. This limit can be overriden with the 'groups_limit' attribute. Part of task 1915702
Diffstat (limited to 'doc/reference/views.rst')
-rw-r--r--doc/reference/views.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 0e2e30cf602..b7d4ccec0f6 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -220,7 +220,10 @@ root can have the following attributes:
allows *dis*\ abling the corresponding action in the view by setting the
corresponding attribute to ``false``
``limit``
- the default size of a page. It should be a positive integer
+ the default size of a page. It must be a positive integer
+``groups_limit``
+ when the list view is grouped, the default number of groups of a page. It
+ must be a position integer
``expand``
when the list view is grouped, automatically open the first level of groups
if set to true (default: false)