Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2814 Переглядів

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
1871
1
бер. 15
12277
1
лист. 24
2206
0
серп. 24
1994
2
лист. 23
4424