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
    • Discuss
    • 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

dynamic email text template based on lead tags

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
qwebcrm.leademail_template
1947 Tampilan
Avatar
Massimiliano Gandini

Hello,

I'm busy defining an email template for which the message text is expected to be dynamically composed on the base of each opportunity tags.

Because tags are a few, my approach is to scroll all the tags in the opportunity and set variables, so that my body_html starts like this:



but I receive the following error

Failed to render QWeb template : This loop code style is not implemented. Traceback (most recent call last): File "/home/odoo/src/odoo/15.0/odoo/api.py", line 886, in get return field_cache[record._ids[0]] KeyError: During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/15.0/odoo/fields.py", line 1082, in __get__ value = env.cache.get(record, self) File "/home/odoo/src/odoo/15.0/odoo/api.py", line 889, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: 'mail.template.preview(,).subject' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/15.0/odoo/tools/cache.py", line 85, in lookup r = d[key] File "/home/odoo/src/odoo/15.0/odoo/tools/func.py", line 71, in wrapper return func(self, *args, **kwargs) File "/home/odoo/src/odoo/15.0/odoo/tools/lru.py", line 34, in __getitem__ a = self.d[obj] KeyError: ('ir.qweb', , , (False, None, None, None, None, None, None, False, None)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 180, in _compile self._compile_node(element, _options, 1) + File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 72, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 171, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 346, in _compile_node return self._compile_static_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 689, in _compile_static_node body = self._compile_directive_content(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 946, in _compile_directive_content body.extend(self._compile_node(item, options, indent)) File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 72, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 171, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 365, in _compile_node return body + self._compile_directives(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 1037, in _compile_directive_foreach content_foreach = self._compile_directives(el, options, indent + 1) + self._flushText(options, indent + 1) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 122, in _compile_directive_tag return super(QWeb, self)._compile_directive_tag(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 885, in _compile_directive_tag code.extend(self._compile_directives(el, options, indent)) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 946, in _compile_directive_content body.extend(self._compile_node(item, options, indent)) File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 72, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 171, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 365, in _compile_node return body + self._compile_directives(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 996, in _compile_directive_if content_if = self._compile_directives(el, options, indent + 1) + self._flushText(options, indent + 1) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 122, in _compile_directive_tag return super(QWeb, self)._compile_directive_tag(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 885, in _compile_directive_tag code.extend(self._compile_directives(el, options, indent)) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 946, in _compile_directive_content body.extend(self._compile_node(item, options, indent)) File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 72, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 171, in _compile_node return super()._compile_node(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 365, in _compile_node return body + self._compile_directives(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/addons/web_editor/models/ir_qweb.py", line 122, in _compile_directive_tag return super(QWeb, self)._compile_directive_tag(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 885, in _compile_directive_tag code.extend(self._compile_directives(el, options, indent)) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 383, in _compile_directives return self._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/tools/profiler.py", line 320, in _tracked_compile_directive return method_compile_directive(self, el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 177, in _compile_directive return super()._compile_directive(el, options, directive, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 827, in _compile_directive return compile_handler(el, options, indent) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 909, in _compile_directive_set expr = self._compile_expr(expr) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_qweb.py", line 387, in _compile_expr namespace_expr = self._compile_expr_tokens(tokens, self._allowed_keyword + list(self._available_objects.keys()), raise_on_missing=raise_on_missing) File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/qweb.py", line 476, in _compile_expr_tokens raise NotImplementedError('This loop code style is not implemented.') NotImplementedError: This loop code style is not implemented. Error when compiling xml template NotImplementedError: This loop code style is not implemented. Template: Path: /div/t/t[1]/t Node: )


Is there someone who can help me on this matter? 

thank you very much in advance.

Massimiliano

0
Avatar
Buang
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
Odoo 15 Community: How do you get emails of entire Sales team for email template? Diselesaikan
crm.lead email_template
Avatar
Avatar
1
Sep 22
3343
t-att-href button not rendered in outlook
qweb emailtemplate email_template
Avatar
Avatar
1
Mar 23
3988
Migration of Jinja to Qweb for email templates in V15 Diselesaikan
qweb email_template jinja2
Avatar
Avatar
1
Feb 22
7215
is it possible to use QWeb template when define a email template?
v8 qweb email_template
Avatar
Avatar
1
Sep 16
4787
CRM Email Template (Odoo-16)
attachment product.product crm.lead email_template
Avatar
0
Jan 24
1888
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