Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5597 Lượt xem

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,


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
11858
3
thg 7 20
24476
0
thg 5 19
5184
1
thg 4 19
4004
1
thg 3 19
11116