From 18cbe267573edd50ef23d8420916c3cc5a04ab74 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 2 Nov 2012 14:35:24 +0530 Subject: [PATCH] [IMP] hr_attendance: set correct end date of week in report bzr revid: cha@tinyerp.com-20121102090524-32mzyakopzv7xka2 --- addons/hr_attendance/report/timesheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_attendance/report/timesheet.py b/addons/hr_attendance/report/timesheet.py index 04ebf62755e..5df1bae4dba 100644 --- a/addons/hr_attendance/report/timesheet.py +++ b/addons/hr_attendance/report/timesheet.py @@ -99,7 +99,7 @@ class report_custom(report_rml): ldt = dt # Week xml representation - week_repr = ['', '%s' % monday.strftime('%Y-%m-%d'), '%s' % n_monday.strftime('%Y-%m-%d')] + week_repr = ['', '%s' % monday.strftime('%Y-%m-%d'), '%s' % (n_monday - relativedelta(days=1)).strftime('%Y-%m-%d')] for idx in range(7): week_repr.append('<%s>' % num2day[idx]) if idx in week_wh: