Modifs on Print Screen utility

bzr revid: jvo@tinyerp.com-20080926061957-u978ss21g4pi4nop
This commit is contained in:
Jay Vora 2008-09-26 11:49:57 +05:30
parent 144766a8e1
commit 99f379dd11
2 changed files with 6 additions and 5 deletions

View File

@ -141,8 +141,9 @@ 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])) + ' )'
if fields[f]['type'] in ('float','integer'):
line[f]=round(line[f],2)
if fields[f]['type'] == 'float':
precision=(('digits' in fields[f]) and fields[f]['digits'][1]) or 2
line[f]=round(line[f],precision)
col = new_doc.createElement("col")
col.setAttribute('tree','no')
if line[f] != None:

View File

@ -153,7 +153,6 @@ class report_printscreen_list(report_int):
tsum.append(0)
for line in results:
node_line = new_doc.createElement("row")
count = -1
for f in fields_order:
count += 1
@ -161,8 +160,9 @@ 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])) + ' )'
if fields[f]['type'] in ('float','integer'):
line[f]=round(line[f],2)
if fields[f]['type'] == 'float':
precision=(('digits' in fields[f]) and fields[f]['digits'][1]) or 2
line[f]=round(line[f],precision)
col = new_doc.createElement("col")
col.setAttribute('para','yes')
col.setAttribute('tree','no')