Wednesday, December 16, 2020
1 change · master
New functionality added to Odoo
This adds new ways to group records by recurring time patterns such as hour of day, day of week, or 15-minute intervals. It helps business users spot trends like peak sales hours or weekday patterns more easily in reporting views.
Original PR description
**New type of grouping.**
For example ``date:only_hour`` -- group by one of 24 value. Allows to analyze which hour of a day has most sales. Other examples:
* 'date:only_hour' -- group by every hour of a day (one of 24 values)
* 'date:only_hour_15minute' -- group by every 15 min of a day (one of 24*4 values)
* 'date:only_dow' -- group by day of a week (one of 7 values)
* 'date:only_dow_hour' -- group by hour of each day of a week (one of 7*24 values)
* 'date:only_doy' -- group by day of a year (one of 365 values)
**More flexible usual grouping**
Allows to specify number in grouping, e.g. ``date:2month`` -- group by 2 monthes (Jan-Feb, Mar-Apr, etc.)
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr