Skip to Content
Menu
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
Zrušiť
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
Zrušiť
Autor

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.

Autor

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 Replies Zobrazenia Aktivita
3
apr 25
2043
0
jan 25
646
0
sep 24
869
1
sep 24
955
0
jún 24
972