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

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. 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
1395
2
7月 25
7064
2
7月 25
3424
2
7月 25
3165
2
6月 25
1854