From dfaa4fdfd5be5fe58ab02d1630c37641687ae93c Mon Sep 17 00:00:00 2001 From: mtr Date: Thu, 30 Jun 2011 17:56:41 +0530 Subject: [PATCH] [IMP] hr_attendance:In Monthly Attendance Report moved the string from xsl to .py in order to translate it bzr revid: mtr@mtr-20110630122641-0y4fxl4b9bqgh1qs --- addons/hr_attendance/report/attendance_by_month.py | 5 +++-- addons/hr_attendance/report/bymonth.xsl | 12 ++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) 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 @@ - + + + + + + + +