Skip to Content
Menu
This question has been flagged
3 Replies
19584 Rodiniai

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

Portretas
Atmesti
Autorius

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>

Best Answer

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

Portretas
Atmesti
Best Answer

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 24
3173
1
liep. 23
4073
1
vas. 22
6735
0
rugp. 21
2947
3
rugp. 20
7246