Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2516 Weergaven

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
Annuleer
Auteur

Ah, thanks! Yes this works!

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jun. 24
1555
1
mrt. 15
11864
1
nov. 24
1658
0
aug. 24
1664
2
nov. 23
3669