-
- Downloads
[FIX] web: do not use groupbys in views not groupable
Before this commit: Some problems occur with not groupable views (views for
which searchMenuTypes does not contain 'groupBy'):
- The searchbar still displays autocomplete suggestions for groupby filters
defined in the search arch while selecting one of them would cause a crash;
- If the action has a default groupby (set in Studio for instance) then it
is still applied and causes crashes.
- Those problems happen in the documents kanban view for instance.
After this commit: If a view is not groupable,
- The groupby filters coming from the search arch are not displayed at all
in the interface;
- A default groupby is never applied;
- The search query generated in the control panel has groupBy = [].
closes odoo/odoo#50439
X-original-commit: 254cb801af893615ecbef51f05898e4190c32d29
Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
Showing
- addons/web/static/src/js/views/control_panel/control_panel_model.js 2 additions, 2 deletions.../static/src/js/views/control_panel/control_panel_model.js
- addons/web/static/src/js/views/kanban/kanban_view.js 4 additions, 2 deletionsaddons/web/static/src/js/views/kanban/kanban_view.js
- addons/web/static/tests/views/control_panel_tests.js 22 additions, 0 deletionsaddons/web/static/tests/views/control_panel_tests.js
- addons/web/static/tests/views/kanban_tests.js 89 additions, 0 deletionsaddons/web/static/tests/views/kanban_tests.js
- addons/web/static/tests/views/list_tests.js 51 additions, 0 deletionsaddons/web/static/tests/views/list_tests.js
Loading
Please register or sign in to comment