İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3158 Görünümler

Hello,


I have a big problem.

I create a simple Html field, like:

    html_field = fields.Html(string=u'Test')

And a qweb report like this:

 <template id="report_test_template" >
<t t-call="web.html_container" >
<t t-foreach="docs" t-as="o">
< div class="page">
< span t-out="o.html_field" />
</div>
</t>
</t>
</template>

When, I tested whith a simple text like:
     "one two "

The PDF report show a extra caracter for each white space:
    one twoÂ

I tried with "span t-raw=" , with plain text and .replace('& nbsp;', ' ') , and I can't it.

Please, help with any idea.

Avatar
Vazgeç
Üretici En İyi Yanıt

Hello

The error was in the wkhtmltopdf.



Avatar
Vazgeç
En İyi Yanıt

Hi,

Try like this

<span t-field="o.html_field"/>


Regards

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
May 22
1658
7
Kas 18
12581
1
May 23
2748
1
Haz 25
1667
3
Tem 25
3293