[FIX] encoding bug in tree printscreen

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

bzr revid: christophe@taupe-20081226111202-pz23wa09u5kezfam
This commit is contained in:
Christophe Simonis
2008-12-26 12:12:02 +01:00
parent 8cd39a445e
commit 1be0861d4a
+2 -2
View File
@@ -157,7 +157,7 @@ class report_printscreen_list(report_int):
line[f]= line[f][1]
if fields[f]['type'] in ('one2many','many2many') and line[f]:
line[f] = '( '+str(len(line[f])) + ' )'
line[f] = '( '+tools.ustr(len(line[f])) + ' )'
if fields[f]['type'] == 'float':
precision=(('digits' in fields[f]) and fields[f]['digits'][1]) or 2
line[f]='%.2f'%(line[f])
@@ -166,7 +166,7 @@ class report_printscreen_list(report_int):
col.setAttribute('para','yes')
col.setAttribute('tree','no')
if line[f] != None:
txt = new_doc.createTextNode(str(line[f] or ''))
txt = new_doc.createTextNode(tools.ustr(line[f] or ''))
if temp[count] == 1:
tsum[count] = float(tsum[count]) + float(line[f]);