Skip to Content
Menu
This question has been flagged
1 Odpoveď
4522 Zobrazenia

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

Avatar
Zrušiť
Best Answer

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.


Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
júl 25
1474
1
máj 25
1448
1
apr 25
2129
1
feb 25
1424
0
okt 24
1202