How To Set Default Group By For Menu Action In Odoo

CelineGeorge1 281 views 8 slides Jul 17, 2024
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

In Odoo, the user interface can be customized to enhance user experience. By setting a default group by parameter, we can pre-configure how records are organized and displayed when a user navigates to a specific menu item. In this slide, let’s discuss how to set default group by for a menu action.


Slide Content

How To Set Default Group By in Search view Enterprise

Introduction Enterpr ise In Odoo, the user interface can be customized to enhance user experience. By setting a default group by parameter, we can pre-configure how records are organized and displayed when a user navigates to a specific menu item. In this slide, let’s discuss how to set default group by for a menu action.

Enterprise This is our custom module and this is how the list view appears before adding the default group by option.

Enterprise This is how the group by fields are included in the search view of this custom module.

Enterprise The action is defined with the context value null. So no default value is set in context.

Enterprise To include the class as default group by, in the context we can pass the value like the below code.

Enterprise Now, when we open the menu for the student detail, the list view will appear like this with default group by class.

For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com