[FIX] encoding problems

lp bug: https://launchpad.net/bugs/311159 fixed

bzr revid: christophe@taupe-20081226132945-z366jn2es0mms9ul
This commit is contained in:
Christophe Simonis 2008-12-26 14:29:45 +01:00
parent 1be0861d4a
commit bfecad04b5
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class report_rml(report_int):
def create(self, cr, uid, ids, datas, context):
xml = self.create_xml(cr, uid, ids, datas, context)
xml = tools.ustr(xml).encode('utf8')
if datas.get('report_type', 'pdf') == 'raw':
return xml
rml = self.create_rml(cr, xml, uid, context)