-
- Downloads
[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 8d57153b. Task ID: 2154749
Showing
- addons/account/views/account_account_views.xml 1 addition, 1 deletionaddons/account/views/account_account_views.xml
- addons/account/views/account_move_views.xml 1 addition, 1 deletionaddons/account/views/account_move_views.xml
- addons/web/models/models.py 58 additions, 25 deletionsaddons/web/models/models.py
- addons/web/static/src/js/views/search_panel.js 45 additions, 28 deletionsaddons/web/static/src/js/views/search_panel.js
- addons/web/static/src/xml/kanban.xml 8 additions, 2 deletionsaddons/web/static/src/xml/kanban.xml
- addons/web/static/tests/helpers/mock_server.js 66 additions, 22 deletionsaddons/web/static/tests/helpers/mock_server.js
- addons/web/static/tests/views/search_panel_tests.js 77 additions, 0 deletionsaddons/web/static/tests/views/search_panel_tests.js
- doc/reference/views.rst 5 additions, 0 deletionsdoc/reference/views.rst
- odoo/addons/base/rng/common.rng 1 addition, 0 deletionsodoo/addons/base/rng/common.rng
- odoo/addons/test_search_panel/tests/test_search_panel_select_multi_range.py 65 additions, 37 deletions...earch_panel/tests/test_search_panel_select_multi_range.py
- odoo/addons/test_search_panel/tests/test_search_panel_select_range.py 54 additions, 0 deletions...test_search_panel/tests/test_search_panel_select_range.py
Loading
Please register or sign in to comment