Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2729 Visninger

Following code can be used to print page number in header or footer of pdf report.


No. :


  • PAGE:




  • /





Is there a way to print to page number in body of pdf report?

Avatar
Kassér
Bedste svar

Hi,


Try the following code in the layout template.


<div class="col-4 text-center" style="font-size: 10px;">

    <span>Page </span>

    <span class="page"/>/<span class="topage"/>

</div>


Reference:-

* https://www.cybrosys.com/blog/how-to-customize-header-footer-for-all-reports-in-odoo-17-erp


Hope it helps

Avatar
Kassér
Bedste svar

file path : odoo/addons/web/views/report_templates.xml


template id = external_layout_striped


in you custom template

or 


you can add in your template footer example



Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
okt. 25
323
1
aug. 25
1093
1
apr. 25
1992
1
jul. 24
2371
1
maj 24
5229