Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4073 Представления

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
2289
1
мая 18
3455
2
янв. 17
6625
3
мар. 15
7364
2
окт. 24
2073