Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
7546 Представления

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

Related Posts Ответы Просмотры Активность
2
авг. 25
2227
1
июл. 25
763
1
авг. 25
1150
0
мая 25
1260
2
апр. 25
3461