Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
8524 Weergaven

Hey,

I'm building a report for a customer. All is fine except that he wants to display the page number on the page (near the adress field) instead of the footer, which is not working at all.

As I understand so far, the subst.js used in the report module is responsible for replacing the page and topage classes with the page numbers.

The subst.js is called in the report/minimal_layout template, if subst is True. The boolean value is set in the report.py in the get_pdf method for the header and footer to True, while it is false for the reportcontent. If I'm applying bad practice and edit the Odoo core and set subst=True for reportcontent, the report engine does not render the body part of the report anymore and returns undefined.

Has anyone had this problem and found a suitable solution?

Avatar
Annuleer
Beste antwoord

Try this:


<div class="footer" align="right">
<div class="text-center" style="border-top: 1px solid black;">
<ul class="list-inline">
<li>Page:</li>
<li><span class="page"/></li>
<li>/</li>
<li><span class="topage"/></li>
</ul>
</div>
</div>
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 23
1257
2
okt. 22
6329
0
dec. 15
4317
1
mrt. 15
14374
3
mrt. 15
17894