Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Dynamic Placeholder Generator (Odoo 15)

Odebírat

Get notified when there's activity on this post

This question has been flagged
templatesE-mail
4 Odpovědi
16657 Zobrazení
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
Zrušit
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
Nejlepší odpověď

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
Zrušit
Avatar
Eauzon
Nejlepší odpověď

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

1
Avatar
Zrušit
Avatar
Rocky Oropeza Berni
Nejlepší odpověď

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
Zrušit
Avatar
Mohd Shoaib Sayyed
Nejlepší odpověď

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
Zrušit
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!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
"harmonised" template for various use cases
templates
Avatar
0
čvc 24
2188
How can i inherit this template? Vyřešeno
templates
Avatar
Avatar
1
zář 23
2716
How to add search bare in a template that allow to search record in a modele ?
templates
Avatar
Avatar
1
čvn 23
3696
Advanced editing of invoice document template
templates
Avatar
Avatar
1
bře 24
5386
How can I add the button to see invoice for the client in the email template?
templates
Avatar
0
lis 22
3170
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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