I want to add default group by in tree view in odoo?
I had added following code, but getting error
<tree string="Contacts" default_order="grade_id">
</tree>
If anyone know, Please let me know
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to add default group by in tree view in odoo?
I had added following code, but getting error
<tree string="Contacts" default_order="grade_id">
</tree>
If anyone know, Please let me know
Hi,
any view is open using menu action,
So what you need to do is, define group by filter in search view (name parameter must in group filter).
Add that filter name as default to action context.
{"search_default_<value>":1}
See here
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up