Skip to content
Snippets Groups Projects
Commit 95fbe82d authored by Mohammed Shekha's avatar Mohammed Shekha Committed by Mathieu Duckerts-Antoine
Browse files

[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: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
parent 21e5560d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment