MuK Groupby Hour

Group records by hour

MuK IT GmbH - www.mukit.at

Overview

Allow records to be grouped by hour. Similar to the already existing options ( day, week, month, quarter, year ). Just add the paramerter groupby='date:hour' like shown below.

		    	
@api.multi
def sales_per_hour(self):
	daily_sales = self.env['sale.report'].read_group(
		domain=[],
		fields=['date', 'price_subtotal'],
		groupby='date:hour')
	return daily_sales
		    	
			

Demo

User:
apps
Password:
demo
Live Preview

Help and Support

Feel free to contact us, if you need any help with your Odoo integration or addiontal features.
Email Contact Support