跳至内容
菜单
此问题已终结
1 回复
5621 查看

Hii,

I have a custom report in QWeb. It shows header, footer and page number at the footer on all pages.

On the first page we need not to show page number, and page number should start from page 2. 

But we need header and footer on first page as well. Odoo 12.

How to get it?

Thanks,


形象
丢弃
最佳答案

Hi, you can use this code


<!--FOOTER -->
<div class="footer">

<div class="not-first-page">

<div class="row">
<div class="col-xs-6; text-center">
Page
<span class="page"/>
of
<span class="topage"/>
</div>
</div>

</div>

</div>
you must install 'report_qweb_element_page_visibility' in this repository
 \https://github.com/OCA/reporting-engine/tree/10.0/report_qweb_element_page_visibility
形象
丢弃
相关帖文 回复 查看 活动
2
3月 24
11896
3
7月 20
24521
0
5月 19
5214
1
4月 19
4016
1
3月 19
11145