Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Dynamic Placeholder Generator (Odoo 15)

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
templatesE-mail
4 Réponses
16650 Vues
Avatar
Eleni Bagklaridou

Hello, I'm having difficulties with e-mail templates. 

I tried to follow this tutorial: 

https://www.odoo.com/documentation/15.0/applications/productivity/discuss/advanced/email_template.html?highlight=templates

I used the dynamic placeholder generator and copied the generated placeholder expressions into the body of the email. When I tested it afterwards, the mail again showed the generated placeholder expressions instead of the desired outcome. 

Does anybody know where to find a more detailed documentation/tutorial on this?




3
Avatar
Ignorer
Vincent Lion

I found a way to solve the issue.
I am creating an email template from the email template menu accessible in developer mode.
There I can switch the editor to see the actual code behind the template.
From the code, I can replace the placeholders by their Web content.

My example : this si the code to get the name of the object contact :
<t t-out="object.name" data-oe-t-inline="true" style="box-sizing:border-box;" contenteditable="false"> </t>

There is a video that explains all this :
https://www.youtube.com/watch?v=VQJodqSE5DM

Hope it helps you to get it done !

Richard Garcia



Bonjour,

 

Je suis actuellement en congés avec un accès limité à ma messagerie.  Je répondrai à votre message dès mon retour le 27/02

 

Avatar
Vincent Lion
Meilleure réponse

I am facing a very similar issue.

When including the placeholder (i.e. Dear {{ object.display_name }}, ... ) in the email text :

- It works perfectly for the test message sent to myself

- It doesn't work at all when sending to a list of contacts selected based on some criteria (reproducing the code and not the content)


I found a way to solve the issue.
I am creating an email template from the email template menu accessible in developer mode.
There I can switch the editor to see the actual code behind the template.
From the code, I can replace the placeholders by their QWeb content.

My example : this is the code to get the name of the object contact : 

" see comment up - as the t-out is processed in the answer ;-) "

There is a video that explains all this : 
https://www.youtube.com/watch?v=VQJodqSE5DM

Hope it helps you to get it done !


2
Avatar
Ignorer
Avatar
Eauzon
Meilleure réponse

How is it possible that Odoo has not fixed this yet ?? Unbelievable ... 

1
Avatar
Ignorer
Avatar
Rocky Oropeza Berni
Meilleure réponse

Hello there,

I've tried both, the documentation (did not work) and the suggestion made by Mohd (did not work either).

Is there somebody with suggestions about this??

1
Avatar
Ignorer
Avatar
Mohd Shoaib Sayyed
Meilleure réponse

Hi,

Odoo 15 now deprecated Jinja Templating which was used in Odoo14 and earlier versions.

Odoo now uses QWEB templating and introduced special t-out tag for same.

How to use it with expression generator ?

1. Lets say you expression is : {{ object.name }}

2. Go to edit more(code mode) and syntax (i.e excluding curly braces)

  

3. Save the template.

4. Preview

Let me know if any issues are faced.

0
Avatar
Ignorer
Diego Avila

Hello,

I have the same problem in Odoo 16, could you please specify where can I find this:
2. Go to edit more(code mode) and syntax (i.e excluding curly braces)
(I believe something is wrong with our view also, because we don't have the "dynamic placeholder generator everyone mentions), the palceholders I used I had to copy them from other user samples.
(Odoo v.16)

Thank you!

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
"harmonised" template for various use cases
templates
Avatar
0
juil. 24
2186
How can i inherit this template? Résolu
templates
Avatar
Avatar
1
sept. 23
2714
How to add search bare in a template that allow to search record in a modele ?
templates
Avatar
Avatar
1
juin 23
3693
Advanced editing of invoice document template
templates
Avatar
Avatar
1
mars 24
5379
How can I add the button to see invoice for the client in the email template?
templates
Avatar
0
nov. 22
3170
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now