Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2324 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
6033
1
thg 11 24
2467
1
thg 11 24
1844
2
thg 9 24
1716
1
thg 8 24
3392