Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

Dynamic Placeholder Generator (Odoo 15)

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
templatesE-mail
4 Respostas
16651 Visualizações
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
Cancelar
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
Melhor resposta

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
Cancelar
Avatar
Eauzon
Melhor resposta

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

1
Avatar
Cancelar
Avatar
Rocky Oropeza Berni
Melhor resposta

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
Cancelar
Avatar
Mohd Shoaib Sayyed
Melhor resposta

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
Cancelar
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!

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
"harmonised" template for various use cases
templates
Avatar
0
jul. 24
2186
How can i inherit this template? Resolvido
templates
Avatar
Avatar
1
set. 23
2714
How to add search bare in a template that allow to search record in a modele ?
templates
Avatar
Avatar
1
jun. 23
3693
Advanced editing of invoice document template
templates
Avatar
Avatar
1
mar. 24
5379
How can I add the button to see invoice for the client in the email template?
templates
Avatar
0
nov. 22
3170
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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