[FIX] hr_attendance: encoded with utf8
authormtr <mtr@mtr>
Wed, 27 Apr 2011 13:08:52 +0000 (18:38 +0530)
committermtr <mtr@mtr>
Wed, 27 Apr 2011 13:08:52 +0000 (18:38 +0530)
lp bug: https://launchpad.net/bugs/771657 fixed

bzr revid: mtr@mtr-20110427130852-6d8odic2ng8wwmlm

addons/hr_attendance/report/timesheet.py

index 53cbb00..900f982 100644 (file)
@@ -109,6 +109,7 @@ class report_custom(report_rml):
         %s
         </report>
         ''' % '\n'.join(user_xml)
+        xml = tools.ustr(xml).encode('utf8')
         return self.post_process_xml_data(cr, uid, xml, context)
 
 report_custom('report.hr.attendance.allweeks', 'hr.employee', '', 'addons/hr_attendance/report/timesheet.xsl')