sort hours within date

This commit is contained in:
Pawan Kumar 2021-04-07 10:32:47 +05:30
parent 9dd2bcdb23
commit dca23eed46
2 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class ProjectTimelineReport(models.Model):
_name = "project.timesheet.report"
_description = "Project Timesheet Report"
_order = 'start_date desc, project_id desc'
_order = 'start_date desc, duration desc'
_auto = False
start_date = fields.Date(string='Start Time', readonly=True)

View File

@ -297,6 +297,8 @@ var MAX_LEGEND_LENGTH = 25 * (1 + config.device.size_class);
var label = data.labels[item.index];
var value;
var boxColor;
console.log('11111', dataset);
console.log('222222', dataset.originIndex);
if (this.state.mode === 'bar') {
label = this._relabelling(label, dataset.originIndex);
if (this.state.processedGroupBy.length > 1 || this.state.origins.length > 1) {