コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
19404 ビュー

How to add company logo to email templates? Thank you.

アバター
破棄
著作者

Hi, if I use ${object.company_id.logo} then the character ascii code of the logo image appears. How can I do to make the logo image appear instead? Thanks

<p><img src=" data:image/png;base64, ${object.company_id.logo}" height="100px" width="100px"/></p>

最善の回答

Gmail, and probably many other emails, do NOT support base64 images, you have to use a url, like:

https://your-website.com/web/image/res.company/${object.company_id.id}/logo?width=180" style="height: auto; width: 180px;"  alt="${object.company_id.name}"/>

アバター
破棄
最善の回答

アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 24
2903
1
7月 23
3815
1
2月 22
6521
0
8月 21
2777
3
8月 20
6905