Breaking News
Loading...
Monday, 24 October 2016

Group by date in ODOO

10/24/2016 06:09:00 pm
Group by Date in ODOO

Adding a Group By in the search view will allow the user to group the records in tree view by Month and not by Day. For example, in the event tree view we can see the Group By 'Start Month' and it will result in the following:


Group by filter for the same is:

<filter string="Start Month" domain="[]" context="{'group_by':'date_begin'}"/>

Here it groups the records by month, to allow grouping by day, we have to change the code to:

<filter string="Start Month" domain="[]" context="{'group_by':'date_begin:day'}"/>



0 comments:

Post a Comment

 
Toggle Footer