Se rendre au contenu
Menu
Cette question a été signalée
6 Réponses
4965 Vues

Hello,

We are having issues with the email template creation:

1. Odoo doesn't show the "dynamic placeholder generator" tool. It doesn't show it as a tab nor as an option of the dynamic menu that appears when you click on the content tab.

2. When we try to create a template by using placeholders shown in other user samples, the email shows the actual placeholder, not the text referred to:

Please see below how we are filling the fields:

Applies to: Task

Subject: Please work on this task {{ object.name }} #this placeholder does work!

Estimado:



Delivery date: {{ format_datetime(x_studio_fecha_y_hora_entrega_diseador) }}

files URL: {{ portal_url(x_studio_enlace_en_la_nube) }}

Description:  {{ format_description(x_studio_related_field_Knh5l) }}


could you please tell us what are we doing wrong? Also, it would be great if we could have access to the "dynamic placeholder generator"


thank you!

Avatar
Ignorer

Hi. Did you ever get a reply to this? I have just submited a ticket myself.

I have the same issue - I do not see the placeholder generator.

Did you get any reply about it?

Meilleure réponse

In odoo v16 email body you have to use this sysntex for dynamic content display and any other fields you can use {{object.name}} this sysntex

In Odoo v16, when creating email templates, you should use the following syntax for dynamic content display:

To display dynamic content:

To include values from other fields: {{object.name}}

By using these syntaxes, you can ensure that your email templates correctly display dynamic content and field values in Odoo v16.

Avatar
Ignorer
Auteur Meilleure réponse

we got a solution from the ticket we sent! I am including it below: 

After investigating the issue on a duplicate database, it seems that a Studio view was blocking the code view and Dynamic Placeholder options from showing.

To fix this, you will need to archive the inherited Studio view on the Email Template form view.

It seems that doing so only removes a blank "New Tab" that was added. Therefore, I do not think archiving the Studio view will not affect much and will allow the new features to work.

I attached screenshots from my duplicate to show the features are now present on for user XXX after I applied the steps.

Please apply these steps to your production database:
1. Go to the Email Templates > Open any template.
2. Open Studio > Go to the View tab > Click "Restore to Default View".
3. Save and close Studio.
4. Check that the features are present and usable for you.

I hope this helps, please let me know if you have any further questions or comments about this ticket.

Avatar
Ignorer
Meilleure réponse

from v16 (or v15, I don't know), email body is a qweb so the equivalent of ${...} of v14 in becomes : 

<t t-out="..."></t> in the body

{{object.name}} in the other fields

Avatar
Ignorer
Meilleure réponse

I found the solution here : https://www.odoo.com/fr_FR/forum/aide-1/email-templates-dynamic-placeholders-not-working-v16-223868

Use the keyboard only and it works

but it is still hard and not user friendly at all, at least with firefox and standard theme because your can't see what is your current item (it is not highlighted or something like that ! ).
My trick : So, I cope with that because at some point the list scrolls and I needed the last item in the list

Avatar
Ignorer
Meilleure réponse

este comando y al final 

Avatar
Ignorer
Meilleure réponse

Usa / este comando y al final de lista tienes el generador, sin embargo, aun no se como funciona, porque aun se ubica el campo y se le da enter, aun asi queda en blanco

Avatar
Ignorer
Auteur

Hello! actually the option doesn't show in our dynamic menu, neither the "code" icon next to the language indicator. We were adviced by the consultant that sold us the Sowftware to open a ticket, but we didn't have any replies yet.