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
Discard
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
Discard
Author

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.

Author

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 Views Activity
3
Apr 25
2576
0
Jan 25
1173
0
Sep 24
1304
1
Sep 24
1372
0
Jun 24
1338