Przejdź do zawartości
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Sztuczna inteligencja
    • IoT
    • VoIP
    • Wiedza
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

dynamic email text template based on lead tags

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
qwebcrm.leademail_template
2599 Widoki
Awatar
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
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Odoo 15 Community: How do you get emails of entire Sales team for email template? Rozwiązane
crm.lead email_template
Awatar
Awatar
1
wrz 22
3808
t-att-href button not rendered in outlook
qweb emailtemplate email_template
Awatar
Awatar
1
mar 23
4791
Migration of Jinja to Qweb for email templates in V15 Rozwiązane
qweb email_template jinja2
Awatar
Awatar
1
lut 22
8311
is it possible to use QWeb template when define a email template?
v8 qweb email_template
Awatar
Awatar
1
wrz 16
5744
CRM Email Template (Odoo-16)
attachment product.product crm.lead email_template
Awatar
0
sty 24
2453
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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