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

Hello all,

I need your help please in Qweb report, I have two issues I don't know how to fix them:

- first issue is with header, I want to display header only in first page not all pages.

- second issue with formatting fileds (html fields), when I put images in form view it doesn't display well in the report, I got a lot of spaces between fields and the images mix with the text.

Examples:

form view

   

report view:

                             

python code:

    constClient  = fields.Html(string="Constation client")

    constGerant  = fields.Html(string="Constation gérant")


qweb code:

            <div t-if="doc.getconstClient">

                <strong>Constatation client: </strong>

                <span t-raw="doc.getconstClient"/>

            </div>

            <div t-if="doc.getconstGerant">

                <strong>Constatation gérant: </strong>

                <span t-raw="doc.getconstGerant"/>

            </div>


Thanks in advance

아바타
취소
베스트 답변

Jean44

use below code before <div class="page">  in report,

<div class="header">
            Here is Header
  </div>

if you want to reuse it you can define with the separate template.

Thank You.


아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
1712
1
5월 25
1709
1
4월 25
2281
1
2월 25
1566
0
10월 24
1322