diff --git a/addons/hr_attendance/report/attendance_by_month.py b/addons/hr_attendance/report/attendance_by_month.py index 3e75324243e..80646be85f4 100644 --- a/addons/hr_attendance/report/attendance_by_month.py +++ b/addons/hr_attendance/report/attendance_by_month.py @@ -105,7 +105,7 @@ class report_custom(report_rml): %s ''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),pooler.get_pool(cr.dbname).get('res.users').browse(cr,uid,uid).company_id.name) - + first_date = str(month) som = datetime.strptime(first_date, '%Y-%m-%d %H:%M:%S') eom = som + timedelta(int(dy)-1) @@ -177,10 +177,11 @@ class report_custom(report_rml): xml = ''' %s + %s %s %s - ''' % (header_xml,'\n'.join(user_xml),date_xml) + ''' % (header_xml,_('Attendances By Month'),'\n'.join(user_xml),date_xml) return xml report_custom('report.hr.attendance.bymonth', 'hr.employee', '', 'addons/hr_attendance/report/bymonth.xsl') diff --git a/addons/hr_attendance/report/bymonth.xsl b/addons/hr_attendance/report/bymonth.xsl index 23e7fb14b3d..0ec0a23cc8d 100644 --- a/addons/hr_attendance/report/bymonth.xsl +++ b/addons/hr_attendance/report/bymonth.xsl @@ -12,6 +12,7 @@ + @@ -29,7 +30,7 @@ - Attendances By Month + week @@ -53,7 +54,14 @@ - + + + + + + + +