Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Can't get Odoo to use dynamic fields

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
customizationpersonalizationdynamicmodel
5 Replies
2653 Tampilan
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
Buang
Avatar
Fenil Moradiya
Jawaban Terbai

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
Buang
Branimir Trošić
Penulis

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
Jawaban Terbai

Hello Branimir Trošić


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

1
Avatar
Buang
Branimir Trošić
Penulis

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ć
Penulis Jawaban Terbai

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
Buang
Avatar
Eva@Ybo Services
Jawaban Terbai

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
Buang
Avatar
Jainil Joshi D.
Jawaban Terbai

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
Buang
Branimir Trošić
Penulis

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

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Remove "Powered by Odoo" from the screen in Odoo 10
customization personalization themes odoo10
Avatar
Avatar
Avatar
Avatar
3
Feb 17
10852
module Extention/ Customization
customization
Avatar
Avatar
Avatar
Avatar
Avatar
5
Agu 24
4108
Dupliquer l'onglet "ligne de commande" dans la vue devis
personalization
Avatar
0
Feb 24
2187
How to custom our Odoo LMS page?
customization
Avatar
0
Jan 22
3202
How to remove the "Create & Edit" on order lines ? Diselesaikan
customization
Avatar
1
Mar 25
5192
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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