Skip to Content
Menú
This question has been flagged
1 Respondre
2452 Vistes

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?

Avatar
Descartar
Autor

Ah, thanks! Yes this works!

Best Answer

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.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 24
1493
1
de març 15
11759
1
de nov. 24
1587
0
d’ag. 24
1606
2
de nov. 23
3577