Skip to Content
Menu
This question has been flagged
1 Reply
4227 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
0
Oct 24
118
1
Apr 24
972
7
Sep 24
22461
1
Mar 24
278
0
Feb 24
422