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

When sending emails the odoo logo is shown in the email and not the company logo.

I tried to change mail_notification_light and add:


< img t-att-src="'/logo.png?company=1'" /> 

OR
< img t-att-src="'http://.../web/image?model=res.company&id=1&field=logo'" /> 

OR
< img t-att-src="'image_data_uri(company.logo)'" />


None of them work correctly!

Thank you

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

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

May be you are using multiple DBs mapped to same domain. So the email template is not sure which logo to be displayed and from which DB. 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
6002
1
พ.ย. 24
2424
1
พ.ย. 24
1820
2
ก.ย. 24
1675
Update stock quantity แก้ไขแล้ว
1
ส.ค. 24
3349