From f892621326dd6755bf2cac3489650323f7197e9c Mon Sep 17 00:00:00 2001 From: prakash Date: Tue, 16 Nov 2021 12:04:00 +0530 Subject: [PATCH] Report export default date format updated --- project_report/report/project_timesheet_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project_report/report/project_timesheet_report.py b/project_report/report/project_timesheet_report.py index 8cbbc50..c2a4d8a 100755 --- a/project_report/report/project_timesheet_report.py +++ b/project_report/report/project_timesheet_report.py @@ -48,11 +48,11 @@ class ProjectTimesheetReport(models.Model): fields_name = dict(zip(fields, index)) res = super(ProjectTimesheetReport, self).export_data(fields) for index, val in enumerate(res['datas']): - if fields_name.get('start_date') is not None: + """if fields_name.get('start_date') is not None: tdateindex = fields_name.get('start_date') tdate = res['datas'][index][tdateindex] if tdate: - res['datas'][index][tdateindex] = datetime.strftime(tdate, "%d/%m/%Y") + res['datas'][index][tdateindex] = datetime.strftime(tdate, "%d/%m/%Y")""" if fields_name.get('task_id') is not None: taskindex = fields_name.get('task_id') ttask = res['datas'][index][taskindex]