Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3345 Представления

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 Ответы Просмотры Активность
2
июл. 25
2968
2
июн. 25
1788
0
мая 25
14
1
дек. 24
6917
1
нояб. 24
3324