From 97d63a205ae66e1684a449f0bbc0c0a6e5bd51bc Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Wed, 3 Dec 2014 15:19:00 -0500 Subject: [PATCH] prevent extra useless second page --- .../report/partner_aged_statement.mako | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/account_partner_aged_statement_webkit/report/partner_aged_statement.mako b/account_partner_aged_statement_webkit/report/partner_aged_statement.mako index b8f40c37..57a329e5 100644 --- a/account_partner_aged_statement_webkit/report/partner_aged_statement.mako +++ b/account_partner_aged_statement_webkit/report/partner_aged_statement.mako @@ -21,10 +21,15 @@ def amount(text): # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers) return text.replace('-', '‑') + + first = True %> %for partner in objects: <%setLang(partner.lang)%> + %if not first: +
+ %endif

<%from datetime import date %> @@ -161,7 +166,8 @@ %endif ## if getLines60(partner) %endif ## if (partner.credit + partner.debit == 0 -
+ + <%! first = False %> %endfor ## for partner in objects