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'] ]]