Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2298 Переглядів

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
6014
1
лист. 24
2430
1
лист. 24
1824
2
вер. 24
1697
Update stock quantity Вирішено
1
серп. 24
3364