Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6412 มุมมอง

Hello!

Does anybody know a working solution how to get a saleperson's image on an email from a CRM.LEAD or a sale.order?

I tried the html code like this

 
in the mail template, but the result is an empty image.

It woul be great and useful for many of us if Odoo had that feature OOTB or at least an Odoo partner would develop an app for photo in the email template or email signature.

So, how to get a user image into the email?

Odoo version 13 Enterprise.

อวตาร
ละทิ้ง
ผู้เขียน

"<img src="data:image/png;base64,${object.user_id.image_1920.decode('utf-8')}">"

ผู้เขียน คำตอบที่ดีที่สุด

Thanks @ray but that code didn't work for me.

But for some reason the code (add < and >) that didn't work before started working now:

img src="data:image/png;base64,${object.user_id.image_1920.decode('utf-8')}"


Just input it into an email template as html code (in debug mode click the > icon), then use that email template for sending an email. The recepient will see the picture.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Take a look at the way we do it for the Applicant: Acknowledgement email from the Recruitment App:

https://github.com/odoo/odoo/blob/13.0/addons/hr_recruitment/data/hr_recruitment_data.xml#L93

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 24
9503
0
มี.ค. 15
4174
Best product image size and resolution? แก้ไขแล้ว
1
ก.ค. 25
2292
0
ต.ค. 24
1258
1
ก.พ. 24
1538