콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
7824 화면

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
8월 25
2825
1
7월 25
1150
1
8월 25
1152
0
5월 25
1562
2
4월 25
3762