Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Can't get Odoo to use dynamic fields

Subscriure's

Get notified when there's activity on this post

This question has been flagged
customizationpersonalizationdynamicmodel
5 Respostes
2652 Vistes
Avatar
Branimir Trošić

Hello, 

I am currently using the Odoo Online installation of version 17.0+e and attempting to create a personalized email marketing campaign. However, I am encountering challenges with incorporating dynamic fields. Specifically:

  • When I use placeholders like ${object.name} or ${object.contact_name}, the email displays them exactly as written without rendering the intended values.
  • Similarly, embedding code such as <span t-field="object.contact_name"/> produces no output.

This leads me to wonder whether Odoo Online imposes certain limitations on customizations, particularly with dynamic fields in email templates, or if I might be missing something in my approach.

Could you please clarify if such limitations exist in the online version, or provide guidance on how to resolve this issue?

Thanks. 

Bran

1
Avatar
Descartar
Avatar
Fenil Moradiya
Best Answer

Hello Branimir,

In the body section, type '/' this will open a popup. Inside that look for 'Dynamic Placeholder'. It allows us to print the respected model's field value in the email template.

Thank you.

1
Avatar
Descartar
Branimir Trošić
Autor

Thank you very much, this solved my problem.

Kindly help me with additional issue: Currently, my contact name contains both name and surname. I would like to use only name, or only surname. How can I do that?

Fenil Moradiya

Since you are using an Odoo online, You can not code to separate name and surname. However you can "create a field" to store only name/surname from the "contact name" and then use that field in the template. Although, It is achievable, You will need to have unique separator to determine name and surname from contact name.

Avatar
Nikul Vasar
Best Answer

Hello Branimir Trošić


You can try this, {{object.name}} or {{object.contact_name}} I'm hopping it may work for you:)

1
Avatar
Descartar
Branimir Trošić
Autor

Sorry, it does not work.
The {{object.contact_name}} gives full name and surname.

Jainil Joshi D.

Hello Branimir,
Sorry for responding this late,
If able to can you show me your template so, I can guide you perfectly.
If not, you could most probably try to do this "{{ object.contact_name }}" the contact_name will be replaced with the first name if you could install partner_firstname app which will be free, then also you could ask someone to do it as a feature for you and save it in one field.
For further questions ask here I will be responding in this weekend too!
Thanks

Avatar
Branimir Trošić
Autor Best Answer

Hi Jainil and Eva, thank you for helping. Sure, I will try to elaborate the problem precisely, but since I do not have enough karma points to post screenshots or links, I will try to explain as best as I can: 

I am trying to automate sending emails to leads in CRM module. When trying to create a personalized email campaing in Email Marketing, I want to address every emailed client by their name, f.E.: "Dear Mr. Pancake". In order to do that, I am trying to use the dynamic placeholder  ${object.name}

 However, when I send the test email, I am not receiving the name in the email, but the placeholder itself.

I have searched for possible answers, and found out that there is a possibility that dynamic fields aren't connected to the module, so I activated the developer mode to view the fields, and found only these fields with "name" in it.

Since I didn't found the ${object.name}, I tested it with the placeholder  ${object.contact_name} , and even tried to paste the code itself instead of the placeholder:  <span t-field="object.contact_name"/>. 

I have checked whether the Contact_Name is connected to the CRM (since the Related Model field is empty) and found out this by clicking on contact_name field.

I have also tried to create an email template in Settings->Technical->Email Templates, but found out later that I cannot access email templates from Email Marketing app (only emails I create withing the app). 

I hope this gives enough information, if anything is missing I will gladly provide additional information. 

Thanks, Bran

1
Avatar
Descartar
Avatar
Eva@Ybo Services
Best Answer

Hello,

Odoo works the same if online or on-premise, there is no limitation there. Can you please be more specific about what you are trying to achieve and give more details about how you did it? It will allow for a better support.

Good luck

Eva P.

1
Avatar
Descartar
Avatar
Jainil Joshi D.
Best Answer

Hello bran,

First of all in customization thing there are no limitations in odoo weather it is online of sh,

further can you explain the problem more with code 

and give a glimpse of what you're trying to do in odoo online if able give photo too.

thanks


1
Avatar
Descartar
Branimir Trošić
Autor

Hello Jainil, I have explained the problem further, could you help me solve the problem? Thank you

Hi Jainil and Eva, thank you for helping. Sure, I will try to elaborate the problem precisely, but since I do not have enough karma points to post screenshots or links, I will try to explain as best as I can:

I am trying to automate sending emails to leads in CRM module. When trying to create a personalized email campaing in Email Marketing, I want to address every emailed client by their name, f.E.: "Dear Mr. Pancake". In order to do that, I am trying to use the dynamic placeholder ${object.name}

However, when I send the test email, I am not receiving the name in the email, but the placeholder itself.

I have searched for possible answers, and found out that there is a possibility that dynamic fields aren't connected to the module, so I activated the developer mode to view the fields, and found only these fields with "name" in it.

Since I didn't found the ${object.name}, I tested it with the placeholder ${object.contact_name} , and even tried to paste the code itself instead of the placeholder: <span t-field="object.contact_name"/>.

I have checked whether the Contact_Name is connected to the CRM (since the Related Model field is empty) and found out this by clicking on contact_name field.

I have also tried to create an email template in Settings->Technical->Email Templates, but found out later that I cannot access email templates from Email Marketing app (only emails I create withing the app).

I hope this gives enough information, if anything is missing I will gladly provide additional information.

Thanks, Bran

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Remove "Powered by Odoo" from the screen in Odoo 10
customization personalization themes odoo10
Avatar
Avatar
Avatar
Avatar
3
de febr. 17
10852
module Extention/ Customization
customization
Avatar
Avatar
Avatar
Avatar
Avatar
5
d’ag. 24
4107
Dupliquer l'onglet "ligne de commande" dans la vue devis
personalization
Avatar
0
de febr. 24
2187
How to custom our Odoo LMS page?
customization
Avatar
0
de gen. 22
3202
How to remove the "Create & Edit" on order lines ? Solved
customization
Avatar
1
de març 25
5190
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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