İçereği Atla
Menü
This question has been flagged

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?

Avatar
Vazgeç
Best Answer

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>



Avatar
Vazgeç
Üretici

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.

Üretici

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 }}

Related Posts Cevaplar Görünümler Aktivite
3
Nis 25
1844
0
Oca 25
486
0
Eyl 24
717
1
Eyl 24
805
0
Haz 24
833