From 043431014637563ca06b30dfced7df8f4140160d Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Tue, 16 Feb 2010 15:18:06 +0530 Subject: [PATCH] [FIX] printscreen: fixed wrong total in print screen bzr revid: hmo@tinyerp.com-20100216094806-090k2tvquc7dx8yf --- bin/report/printscreen/ps_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/report/printscreen/ps_list.py b/bin/report/printscreen/ps_list.py index a06ad64b16b..7107bb0c5e1 100644 --- a/bin/report/printscreen/ps_list.py +++ b/bin/report/printscreen/ps_list.py @@ -211,14 +211,14 @@ class report_printscreen_list(report_int): col.text = tools.ustr(line[f] or '') if float_flag: col.set('tree','float') - if f != 'id' and temp[count] == 1: + if not line.get('__group') and f != 'id' and temp[count] == 1: tsum[count] = float(tsum[count]) + float(line[f]); else: col.text = '/' node_line = etree.SubElement(lines, 'row') for f in range(0,count+1): - col = etree.SubElement(node_line, 'col', para='yes', tree='no') + col = etree.SubElement(node_line, 'col', para='group', tree='no') if tsum[f] != None: if tsum[f] >= 0.01 : prec = '%.' + str(tools.config['price_accuracy']) + 'f'