تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4463 أدوات العرض

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
مايو 25
1220
1
أبريل 25
2014
1
فبراير 25
1256
0
أبريل 25
1281
0
أكتوبر 24
1103