From d16b487ac4ccbe50f9c87fcade94bda33d5d40f5 Mon Sep 17 00:00:00 2001 From: Jay Vora Date: Tue, 14 Oct 2008 19:17:58 +0530 Subject: [PATCH] Corrected account_report for printing indicators bzr revid: jvo@tinyerp.com-20081014134758-p4a03bnfem110dae --- .../account_report/report/print_indicator.py | 4 +- .../account_report/report/print_indicator.rml | 43 ++++++++++++++----- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/addons/account_report/report/print_indicator.py b/addons/account_report/report/print_indicator.py index 83ac5eb22cc..8496dd3e834 100644 --- a/addons/account_report/report/print_indicator.py +++ b/addons/account_report/report/print_indicator.py @@ -137,9 +137,11 @@ class accounting_report_indicator(report_sxw.rml_parse): 'expression':obj_ind.expression, 'disp_graph':obj_ind.disp_graph, 'note':obj_ind.note, - 'type':obj_ind.type + 'type':obj_ind.type, + 'last':False, } result.append(res) + result[-1]['last']=True return result def getarray(self,data,object): diff --git a/addons/account_report/report/print_indicator.rml b/addons/account_report/report/print_indicator.rml index 305548844b5..1834c8f128b 100644 --- a/addons/account_report/report/print_indicator.rml +++ b/addons/account_report/report/print_indicator.rml @@ -36,12 +36,7 @@ - - - - - - + @@ -56,7 +51,7 @@ - + @@ -78,7 +73,7 @@ -Accounting Test +Indicators @@ -120,7 +115,6 @@
[[ repeatIn(lines(data['form']),'o')]] -[['-'* 155]] @@ -131,6 +125,9 @@ + + + [[ o['disp_graph'] and setTag('para','image',{'file':test(data['form'],o)}) or removeParentNode('para') ]]
[[ repeatIn(getarray(data['form'],o),'array',td=len(data['form']['base_selection'][0][2])) ]] @@ -150,11 +147,37 @@ + + + Expression : [[ o['expression'] ]] -Notes : [[ o['note'] ]] + + + + + + +Notes : [[ o['note'] ]] + + + +[[ o['last'] and removeParentNode('pageBreak')]] + + + + + + +Name[[ o['last'] and removeParentNode('blockTable')]] + + +Code + + +