콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2548 화면

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
1564
1
3월 15
11884
1
11월 24
1707
0
8월 24
1685
2
11월 23
3743