跳至内容
菜单
此问题已终结
2 回复
5763 查看

I use 

``` 

<img t-if="o.visitor.visitor_image" t-att-src="'data:image/png;base64,%s' % o.visitor.visitor_image" height="120" border="1" width="120"/>

```

but still my image not show in Qweb PDF report

形象
丢弃
最佳答案

Hi Usman,

Try following code:

<img t-if="o.visitor.visitor_image" t-att-src="'data:image/png;base64,%s' % o.visitor.visitor_image"/>
形象
丢弃
编写者 最佳答案

<img t-if="o.visitor.visitor_image" t-att-src="'data:image/png;base64,%s' % to_text(o.visitor.visitor_image)" height="120" border="1" width="120"/>

形象
丢弃
相关帖文 回复 查看 活动
2
3月 24
2402
2
10月 22
5631
1
2月 22
2743
1
8月 21
4231
2
3月 21
3794