hi all ,
i have a tree view , i want to show it by default with grouped by (grouped by employee_id)
if someone can help .
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi all ,
i have a tree view , i want to show it by default with grouped by (grouped by employee_id)
if someone can help .
thanks
On your search view you have something like this:
<filter name="group_employee_id" string="Category" icon="terp-partner" context="{'group_by':'employee_id'}"/>
So, on your action you have to send this by context:
<field name="context">{'search_default_group_employee_id': 1}</field>
<filter name="group_employee_id" string="Category" icon="terp-partner" context="{'group_by':'employee_id'}"/>
So, on your action you have to send this by context:
<field name="context">{'search_default_group_employee_id': 1}</field>
<record id=".............." model="ir.actions.act_window" >
<field name="name">.............</field>
<field name="res_model">.................</field>
<field name="view_type">form</field>
<field name="context">{'group_by':'employee_id'}</field>
<field name="view_mode">tree</field>
<field name="domain">[('active', '=', True)]</field>
</record>