跳至内容
菜单
此问题已终结
1 回复
2466 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
2
6月 24
1515
1
3月 15
11764
1
11月 24
1593
0
8月 24
1614
2
11月 23
3585