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

In a custom layout template for odoo 15 reporting (PDF) I want to print a specific text only on pages greater than 1 (means from page 2 to the end of the report) in the header. I have made the following:

< span t-if"page > 1">Rechnnungsnummer: ####< /span >

(Weird formatting is due to the limitations in this forum)

But it seems not to work, when printing the report I get an error: '>' not supported between instances of 'NoneType' and 'int'. 

Using "&gt ;" works not as well. What am I doing wrong?

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

Ah, thanks! Yes this works!

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

In Qweb report, you won't be able to find the page number. There is an OCA module "report_qweb_element_page_visibility" which will help you to fulfill your requirement.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 24
1549
1
มี.ค. 15
11826
1
พ.ย. 24
1627
0
ส.ค. 24
1641
2
พ.ย. 23
3631