diff --git a/addons/hr_attendance/report/attendance_by_month.py b/addons/hr_attendance/report/attendance_by_month.py index c8d0378b971..03246b4bab6 100644 --- a/addons/hr_attendance/report/attendance_by_month.py +++ b/addons/hr_attendance/report/attendance_by_month.py @@ -29,6 +29,7 @@ from report.interface import report_rml from report.interface import toxml from report import report_sxw +from tools import ustr one_day = relativedelta(days=1) month2name = [0, 'January', 'February', 'March', 'April', 'May', 'Jun', 'July', 'August', 'September', 'October', 'November', 'December'] @@ -60,7 +61,7 @@ class report_custom(report_rml): %s %%s - ''' % (toxml(emp['name'])) + ''' % (ustr(emp['name'])) today, tomor = month, month + one_day while today.month == month.month: #### Work hour calculation diff --git a/addons/hr_holidays/report/holidays_summary_report.py b/addons/hr_holidays/report/holidays_summary_report.py index 92dedd1a14d..a7d9e16accc 100644 --- a/addons/hr_holidays/report/holidays_summary_report.py +++ b/addons/hr_holidays/report/holidays_summary_report.py @@ -29,6 +29,7 @@ from report.interface import toxml import pooler import time from report import report_sxw +from tools import ustr def lengthmonth(year, month): if month == 2 and ((year % 4 == 0) and ((year % 100 != 0) or (year % 400 == 0))): @@ -244,7 +245,7 @@ class report_custom(report_rml): %s %s - ''' % (header_xml,months_xml,date_xml, emp_xml) + ''' % (header_xml,months_xml,date_xml, ustr(emp_xml)) return xml