[FIX] path oo report designer : encoding problem
bzr revid: tfr@openerp.com-20101220111241-eaygt3dbpfsjhtj6
This commit is contained in:
committed by
Thibault Francois
parent
755614448a
commit
81a2851a34
@@ -59,6 +59,8 @@ class report_xml(osv.osv):
|
||||
|
||||
def report_get(self, cr, uid, report_id, context=None):
|
||||
report = self.browse(cr, uid, report_id, context=context)
|
||||
reload(sys)
|
||||
sys.setdefaultencoding( "latin-1" )
|
||||
return {
|
||||
'file_type' : report.report_type,
|
||||
'report_sxw_content': report.report_sxw_content and base64.encodestring(report.report_sxw_content) or False,
|
||||
|
||||
Reference in New Issue
Block a user