Browse Source

clean page break fix

pull/9/head
Vincent Vinet 10 years ago
committed by Maxime Chambreuil
parent
commit
650ffe071d
  1. 7
      account_partner_aged_statement_webkit/report/partner_aged_statement.mako

7
account_partner_aged_statement_webkit/report/partner_aged_statement.mako

@ -22,12 +22,11 @@
# replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers) # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers)
return text.replace('-', '‑') return text.replace('-', '‑')
first = True
%> %>
<body> <body>
%for partner in objects:
%for idx, partner in enumerate(objects):
<%setLang(partner.lang)%> <%setLang(partner.lang)%>
%if not first:
%if idx > 0:
<div class="break"></div> <div class="break"></div>
%endif %endif
<br/> <br/>
@ -166,8 +165,6 @@
</table> </table>
%endif ## if getLines60(partner) %endif ## if getLines60(partner)
%endif ## if (partner.credit + partner.debit == 0 %endif ## if (partner.credit + partner.debit == 0
<%! first = False %>
%endfor ## for partner in objects %endfor ## for partner in objects
</body> </body>
</html> </html>
Loading…
Cancel
Save