diff --git a/cor_custom/models/analytic.py b/cor_custom/models/analytic.py index 458a670..e4436d1 100755 --- a/cor_custom/models/analytic.py +++ b/cor_custom/models/analytic.py @@ -171,8 +171,10 @@ class AccountAnalyticLine(models.Model): durationindex = fields_name.get('unit_amount') duration = res['datas'][index][durationindex] and float(res['datas'][index][durationindex]) if duration: - duration_time = tools.format_duration(duration) + duration_time = round(duration, 2) res['datas'][index][durationindex] = duration_time + #duration_time = tools.format_duration(duration) + #res['datas'][index][durationindex] = duration_time return res @api.model diff --git a/project_report/report/project_timesheet_report.py b/project_report/report/project_timesheet_report.py index bfe6d40..f21d4b4 100755 --- a/project_report/report/project_timesheet_report.py +++ b/project_report/report/project_timesheet_report.py @@ -57,8 +57,10 @@ class ProjectTimelineReport(models.Model): durationindex = fields_name.get('duration') duration = res['datas'][index][durationindex] and float(res['datas'][index][durationindex]) if duration: - duration_time = tools.format_duration(duration) + duration_time = round(duration, 2) res['datas'][index][durationindex] = duration_time + #duration_time = tools.format_duration(duration) + #res['datas'][index][durationindex] = duration_time return res def init(self): diff --git a/project_report/report/project_timesheet_report_views.xml b/project_report/report/project_timesheet_report_views.xml index 167c026..d3da360 100755 --- a/project_report/report/project_timesheet_report_views.xml +++ b/project_report/report/project_timesheet_report_views.xml @@ -12,7 +12,7 @@ - +