From 9e4ae35beb42ac045e202649ad7e56808ff25564 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Fri, 25 Mar 2011 18:12:35 +0530 Subject: [PATCH] [IMP]Account followup:Improvement of report style and shape bzr revid: ron@tinyerp.com-20110325124235-2niq7ivqgirr6vv0 --- .../report/account_followup_print.py | 3 +- .../report/account_followup_print.rml | 51 +++++++++++++++---- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/addons/account_followup/report/account_followup_print.py b/addons/account_followup/report/account_followup_print.py index 9ad0e4bd480..54ead894c67 100644 --- a/addons/account_followup/report/account_followup_print.py +++ b/addons/account_followup/report/account_followup_print.py @@ -80,7 +80,8 @@ class report_rappel(report_sxw.rml_parse): line_cur[currency.id]['line'].append(line_data) for cur in line_cur: - final_res.append({'line': line_cur[cur]['line']}) + if line_cur[cur]['line']: + final_res.append({'line': line_cur[cur]['line']}) return final_res diff --git a/addons/account_followup/report/account_followup_print.rml b/addons/account_followup/report/account_followup_print.rml index dd4aefb39e5..812f0aa0e50 100644 --- a/addons/account_followup/report/account_followup_print.rml +++ b/addons/account_followup/report/account_followup_print.rml @@ -56,6 +56,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -77,8 +108,8 @@ - - + + @@ -86,8 +117,8 @@ - - + + @@ -129,14 +160,14 @@
- + [[repeatIn(getLines(o), 'cur_lines') ]] Invoice Date - Description + Description Ref @@ -151,13 +182,15 @@ Li. + + [[repeatIn(cur_lines['line'], 'line') ]] - [[ formatLang(line['date'],date = True) ]] + [[ formatLang(line['date'],date = True) ]] - [[ line['name'] ]] + [[ line['name'] ]] [[ line['ref'] ]] @@ -181,7 +214,7 @@ - Total: + Total: [[formatLang(reduce(lambda x,y: x+y['balance'], cur_lines['line'], 0.00)) ]] [[ line['currency_id'] ]]