Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер 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
    Отримати демо
  • Ціни
  • Допомога

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

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

Can't get Odoo to use dynamic fields

Підписатися

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

Це запитання позначене
customizationpersonalizationdynamicmodel
5 Відповіді
2646 Переглядів
Аватар
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
Аватар
Відмінити
Аватар
Fenil Moradiya
Найкраща відповідь

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
Аватар
Відмінити
Branimir Trošić
Автор

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.

Аватар
Nikul Vasar
Найкраща відповідь

Hello Branimir Trošić


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

1
Аватар
Відмінити
Branimir Trošić
Автор

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

Аватар
Branimir Trošić
Автор Найкраща відповідь

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
Аватар
Відмінити
Аватар
Eva@Ybo Services
Найкраща відповідь

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
Аватар
Відмінити
Аватар
Jainil Joshi D.
Найкраща відповідь

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
Аватар
Відмінити
Branimir Trošić
Автор

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

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 Відповіді Переглядів Дія
Remove "Powered by Odoo" from the screen in Odoo 10
customization personalization themes odoo10
Аватар
Аватар
Аватар
Аватар
3
лют. 17
10851
module Extention/ Customization
customization
Аватар
Аватар
Аватар
Аватар
Аватар
5
серп. 24
4106
Dupliquer l'onglet "ligne de commande" dans la vue devis
personalization
Аватар
0
лют. 24
2187
How to custom our Odoo LMS page?
customization
Аватар
0
січ. 22
3202
How to remove the "Create & Edit" on order lines ? Вирішено
customization
Аватар
1
бер. 25
5189
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
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 ภาษาไทย 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