Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Dynamic Placeholder Generator (Odoo 15)

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
templatesE-mail
4 Besvarelser
16656 Visninger
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
Kassér
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
Bedste svar

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
Kassér
Avatar
Eauzon
Bedste svar

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

1
Avatar
Kassér
Avatar
Rocky Oropeza Berni
Bedste svar

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
Kassér
Avatar
Mohd Shoaib Sayyed
Bedste svar

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
Kassér
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!

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
"harmonised" template for various use cases
templates
Avatar
0
jul. 24
2188
How can i inherit this template? Løst
templates
Avatar
Avatar
1
sep. 23
2716
How to add search bare in a template that allow to search record in a modele ?
templates
Avatar
Avatar
1
jun. 23
3696
Advanced editing of invoice document template
templates
Avatar
Avatar
1
mar. 24
5384
How can I add the button to see invoice for the client in the email template?
templates
Avatar
0
nov. 22
3170
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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