Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Artificial Intelligence
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Property Management
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

dynamic email text template based on lead tags

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
qwebcrm.leademail_template
2649 Переглядів
Аватар
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
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

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

Реєстрація
Related Posts Відповіді Переглядів Дія
Odoo 15 Community: How do you get emails of entire Sales team for email template? Вирішено
crm.lead email_template
Аватар
Аватар
1
вер. 22
3819
t-att-href button not rendered in outlook
qweb emailtemplate email_template
Аватар
Аватар
1
бер. 23
4811
Migration of Jinja to Qweb for email templates in V15 Вирішено
qweb email_template jinja2
Аватар
Аватар
1
лют. 22
8334
is it possible to use QWeb template when define a email template?
v8 qweb email_template
Аватар
Аватар
1
вер. 16
5772
CRM Email Template (Odoo-16)
attachment product.product crm.lead email_template
Аватар
0
січ. 24
2466
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة 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 - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція 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