Ir al contenido
Menú
Se marcó esta pregunta

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
Descartar
Mejor respuesta

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

Publicaciones relacionadas Respuestas Vistas Actividad
3
abr 25
2586
0
ene 25
1177
0
sept 24
1305
1
sept 24
1376
0
jun 24
1353