Bugfix:Print Screen Float values well-aligned
bzr revid: jvo@tinyerp.com-20080925135945-xc0vponx69cmkov6
This commit is contained in:
parent
0eb952e667
commit
f58b7bc578
|
@ -141,6 +141,8 @@ 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)
|
||||
col = new_doc.createElement("col")
|
||||
col.setAttribute('tree','no')
|
||||
if line[f] != None:
|
||||
|
|
|
@ -128,7 +128,6 @@ class report_printscreen_list(report_int):
|
|||
t += fields[f].get('size', 80) / 28 + 1
|
||||
|
||||
l.append(s)
|
||||
|
||||
for pos in range(len(l)):
|
||||
if not l[pos]:
|
||||
s = fields[fields_order[pos]].get('size', 80) / 28 + 1
|
||||
|
@ -152,7 +151,6 @@ class report_printscreen_list(report_int):
|
|||
count = len(fields_order)
|
||||
for i in range(0,count):
|
||||
tsum.append(0)
|
||||
|
||||
for line in results:
|
||||
node_line = new_doc.createElement("row")
|
||||
|
||||
|
@ -163,6 +161,8 @@ 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)
|
||||
col = new_doc.createElement("col")
|
||||
col.setAttribute('para','yes')
|
||||
col.setAttribute('tree','no')
|
||||
|
|
Loading…
Reference in New Issue