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

I want to understand what is t-esc in odoo xml?

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

t-esc is used to print out the value in a variable.

Thanks

الصورة الرمزية
إهمال
الكاتب

Thanks

أفضل إجابة

Hi Asmaa,

The t-esc directive is used in Odoo to display the value of a field or expression in a template.

When using the t-esc directive in Odoo XML, the value of the field or expression will be automatically escaped before being displayed in the template. This means that certain characters in the value that have special meaning in HTML, such as , &, ", and ', will be replaced with their corresponding HTML entities.


Documentation:
https://www.odoo.com/documentation/14.0/developer/reference/javascript/qweb.html


Hope it Helps,

Kiran K

الصورة الرمزية
إهمال
الكاتب

Thanks

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 25
2206
1
يوليو 25
750
1
أغسطس 25
1150
0
مايو 25
1259
2
أبريل 25
3444