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

Hi Odoers,


I'm using Odoo 15(EE) Email Marketing Module.

When I prepare an email template, the dynamic data which I require in the email body is not getting loaded, whereas the same is working in the subject line. 

I am using, {{ object.name }} in both Subject line and Email body. In the subject line it is showing the proper value, but in the email content, it is showing "{{ object.name }}".


Is there a way we can resolve this so that I can send the mail with dynamic data?

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

I think you have added "{{ object.name }}" directly under the content. 

Like following,

Then result will be,


Solution

Instead, please switch to the HTML code view and add  there.

To switch to code view, select some content and enable the following options.

<strong t-out="object.name or ''">Anything</strong>



Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you Midhun M M.
But the email templates I am asking about are related to "Email Marketing Templates" which are not the same as "Email Templates" under Settings.

You have to do the same there also screenshot added please check.

Tác giả

That option is available if any template is selected. For plain text, I am not able to pass the dynamic data or get the html tag even after activating the developer mode.

I'm on Odoo 17 and I use plain text with "/personalize" all the time. It works flawlessly. Curious - is this not a feature on Odoo 15?

Inside content, please try ${object.name} instead of {{ object.name }}

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 4 25
2077
0
thg 1 25
673
0
thg 9 24
910
1
thg 9 24
980
0
thg 6 24
1007