Reputation: 113
<ul class="list-inline">
<li>Page:</li>
<li><span class="page"/></li>
<li>/</li>
<li><span class="topage"/></li>
</ul>
This displays page number at the footer of the report. But is it possible to display page number, if I want page number as a field in the report like:
Transaction #:
Account #:
Page:
Date: 10-March-2017
Time: 12:28:32 PM
Upvotes: 1
Views: 2369
Reputation: 1
<ul class="list-inline">
<li>Page:</li>
<li><span class="page"/></li>
<li>/</li>
<li><span class="topage"/></li>
</ul>
add this code to inside the header tag which place do you want
Upvotes: -2
Reputation: 716
Please try this code for page number in Qweb-report. It will automatically display page no.
<t t-call="report.external_layout"></t>
Upvotes: -1
Reputation: 154
Up till Odoo 10c, putting the page number automatically in the body of the report is not possible. A ticket has been opened on GitHub: [9.0] Page number cannot be used in Body of QWeb report #13332
However, it is not a bug in a sense because it works, but it would be nice if it could be placed elsewhere in the body than just the footer.
Also, this has to do with the way the reports and report numbers are generated. The footer appears in every page, which the report generator uses to determine the total number of pages and the current page number.
Upvotes: -1