I need a different footer on the scond pdf page.
I added this to the footer template
<p class="test">test</p>
<script>
document.getElementsByClassName('test')[0].innerHTML="only on first page";
</script><div>
<t t-if="count() == 1">
only on first page
</t>
</div>
but this change the text test on all page.
The pdf file has two pages, but the python method count() only called ones.
Thanks
<template id="test_report"> <div class="header">Header for first page</div> <div class="page">Content for first page</div> <div class="footer">Footer for first page</div> <div class="header">Header for second page</div> <div class="page">Content for second page</div> <div class="footer">Footer for second page</div> </template>
Did you manage it?