summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2020-05-08 08:57:44 +0000
committerJulien Mougenot <jum@odoo.com>2020-06-12 13:34:04 +0000
commit3306a0f41492ee51e93ce9cedcd42296e09df6a0 (patch)
tree6864dfb7530b63e451b43c791127c9bdfbeade36 /doc/reference
parente5585c078ef936c3533ba9361c05188fb5e3ab1d (diff)
[IMP] *: limit in search panel
This commit introduces a new attribute 'limit' for search panel fields that allows to avoid performance issues. That integer attribute (with default 200) allows to fix a maximal number of values to display for the fields. When the number of field values to display reaches the limit, no values will be displayed. Instead, a warning message will be shown in the corresponding search panel section. Note it is possible to have no limit using limit="0" on a field. This commit reintroduces in a better way the principle brought by the fix 8d57153b34c04952a85f6642951cb2697016da84. Task ID: 2154749
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/views.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 3f46422a966..79bd92b5a73 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -2005,6 +2005,11 @@ Possible children elements of the search view are:
* ``expand``: default is false. If set to false categories or filters with 0 records will be hidden.
+ * ``limit``: default is 200. Integer determining the maximal number of values to fetch for the field.
+ If the limit is reached, no values will be displayed in the search panel and an error message will
+ appear instead because we consider that is useless / bad performance-wise. All values will be
+ fetched if set to 0.
+
Additional optional attributes are available according to the chosen case:
For the ``one`` case: