Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
11463 มุมมอง

I want to display page number after order line table

Currenly it will display in header and footer of reports but not accessiable in body of qweb report.

Can anyone suggest me how to get current and total page number in odoo body content?

 have use below code in body but it will not display page number:

<ul class="list-inline">

<li>Page:</li>

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

<li>/</li>

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

</ul>


Updated Image 2-05-2018
https://prnt.sc/jcmi70
อวตาร
ละทิ้ง

I have the same question? do you find any solution for this?

คำตอบที่ดีที่สุด

Remember the page number only shows when the report type is PDF, In HTML format page number will not shown. Here we will display page number in this (page X of Y) format.

<!--Report Body Section Goes Here-->
<div class="footer" style="position:absolute; margin:0px; padding:0px">
    <span class="page"/>/<span class="topage"/>
</div> 

Read more in detail: http://learnopenerp.blogspot.com/2017/11/how-to-add-page-number-in-qweb-reports.html

อวตาร
ละทิ้ง
ผู้เขียน

Actually i want to display in report body part, not in footer.

As content will be dynamic for order line so margin or padding will not work.

See Picture: https://prnt.sc/jcmi70

คำตอบที่ดีที่สุด

Hi Sirs,

I'm in same problem. It seems to be imposible.

Thanks,

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Please try this code for the page number in Qweb-report. It will automatically display page no.

<t t-call="report.external_layout"></t>
อวตาร
ละทิ้ง
ผู้เขียน

I want to display page number in body part not in header and footer

Thanks

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 22
1792
2
ก.ย. 24
2059
0
มิ.ย. 22
3
0
มิ.ย. 22
3
0
พ.ค. 20
3300