From ffd85dccc6f8fec49cee6c2c96ff54bbe7bc4165 Mon Sep 17 00:00:00 2001 From: mtr Date: Thu, 10 Feb 2011 16:37:35 +0530 Subject: [PATCH] [IMP] hr_attendance: added missing action in the wizard for 'Weekly Attendance Report' bzr revid: mtr@mtr-20110210110735-4wqqa0p42q0ylq57 --- addons/hr_attendance/report/timesheet.py | 4 ++- .../wizard/hr_attendance_byweek_view.xml | 34 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/addons/hr_attendance/report/timesheet.py b/addons/hr_attendance/report/timesheet.py index 7adfe98ef13..0463c1ff698 100644 --- a/addons/hr_attendance/report/timesheet.py +++ b/addons/hr_attendance/report/timesheet.py @@ -28,6 +28,8 @@ import pooler from report.interface import report_rml from report.interface import toxml +import tools + one_week = relativedelta(days=7) num2day = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] @@ -58,7 +60,7 @@ class report_custom(report_rml): %s %%s - ''' % ustr(toxml(emp['name'])) + ''' % tools.ustr(toxml(emp['name'])) while monday != last_monday: #### Work hour calculation sql = ''' diff --git a/addons/hr_attendance/wizard/hr_attendance_byweek_view.xml b/addons/hr_attendance/wizard/hr_attendance_byweek_view.xml index b87a3903a80..4ed56ce1800 100644 --- a/addons/hr_attendance/wizard/hr_attendance_byweek_view.xml +++ b/addons/hr_attendance/wizard/hr_attendance_byweek_view.xml @@ -1,6 +1,40 @@ + + Attendances Report Weekly + hr.attendance.week + form + +
+ + + + +