Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4072 มุมมอง

I have used:

<img src="/module/static/src/img/image.png" class="img" style="height:25%;width:25%;"/>

in my report
it shows the image when qweb-html, but when rendering to pdf the image does not show.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Already fixed the problem

had use a layout.


<t t-call="web.html_container">
                    <t t-foreach="docs" t-as="doc">
<t t-call="web.internal_layout">

......

อวตาร
ละทิ้ง

adding <t t-call="web.internal_layout"> is solving the issue, thanks

คำตอบที่ดีที่สุด
Hello, 

I think you have to try t-att-src instead of src

    

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 21
2288
1
พ.ค. 18
3454
2
ม.ค. 17
6625
Reports not auto-saved to attachments แก้ไขแล้ว
3
มี.ค. 15
7364
2
ต.ค. 24
2072