İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Yapay Zeka
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım
Toplulukla etkileşime geçmek için kayıtlı olmanız gerekir.
Tüm Gönderiler İnsanlar Rozetler
Etiketler (Tümünü göster)
odoo accounting v14 pos v15
Bu forum hakkında
Toplulukla etkileşime geçmek için kayıtlı olmanız gerekir.
Tüm Gönderiler İnsanlar Rozetler
Etiketler (Tümünü göster)
odoo accounting v14 pos v15
Bu forum hakkında
Yardım

dynamic email text template based on lead tags

Abone Ol

Bu gönderide etkinlik olduğunda bildirim alın

Bu soru işaretlendi
qwebcrm.leademail_template
2673 Görünümler
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
Vazgeç
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!

Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Odoo 15 Community: How do you get emails of entire Sales team for email template? Çözüldü
crm.lead email_template
Avatar
Avatar
1
Eyl 22
3841
t-att-href button not rendered in outlook
qweb emailtemplate email_template
Avatar
Avatar
1
Mar 23
4844
Migration of Jinja to Qweb for email templates in V15 Çözüldü
qweb email_template jinja2
Avatar
Avatar
1
Şub 22
8455
is it possible to use QWeb template when define a email template?
v8 qweb email_template
Avatar
Avatar
1
Eyl 16
5812
CRM Email Template (Odoo-16)
attachment product.product crm.lead email_template
Avatar
0
Oca 24
2478
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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