Browse Source

prevent extra useless second page

pull/9/head
Vincent Vinet 10 years ago
committed by Maxime Chambreuil
parent
commit
97d63a205a
  1. 8
      account_partner_aged_statement_webkit/report/partner_aged_statement.mako

8
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
%>
<body>
%for partner in objects:
<%setLang(partner.lang)%>
%if not first:
<div class="break"></div>
%endif
<br/>
<br/>
<%from datetime import date %>
@ -161,7 +166,8 @@
</table>
%endif ## if getLines60(partner)
%endif ## if (partner.credit + partner.debit == 0
<div class="break"></div>
<%! first = False %>
%endfor ## for partner in objects
</body>
</html>
Loading…
Cancel
Save