تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3446 أدوات العرض

I am trying to display additional message in a sale order confirmation mail.

The message is a HTML field (pending_msg). I want to display this message at the bottom of email template when a customer selects certain payment acquirer. 

The problem is when i just use the field it displays with extra html  elements. I don't think I can use t-raw. Is the best solution to format the html field in a python function and call that function in the email template to get the string or is there another way.

Thank you. 

الصورة الرمزية
إهمال

did you tried using <t t-esc="yourField"/>

You can add the HTML field in the particular model and that can call from the objects also you can refer to the Forum answer

https://www.odoo.com/it_IT/forum/assistenza-1/send-email-based-to-fields-html-without-tags-when-we-are-on-the-template-191524

Hope it helps

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 23
1554
5
سبتمبر 23
6922
0
مايو 21
2273
1
مارس 15
5620
3
فبراير 25
4455