Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4061 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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">

......

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất
Hello, 

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

    

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 21
2284
1
thg 5 18
3450
2
thg 1 17
6622
3
thg 3 15
7362
2
thg 10 24
2070