Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2463 Представления

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
1512
1
мар. 15
11763
1
нояб. 24
1593
0
авг. 24
1613
2
нояб. 23
3583