跳至內容
選單
此問題已被標幟
3 回覆
19507 瀏覽次數

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
3087
1
7月 23
3958
1
2月 22
6642
0
8月 21
2897
3
8月 20
7137