Report export default date format updated
This commit is contained in:
parent
ff79153a0f
commit
f892621326
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue