Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7533 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

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

Thanks

Awatar
Odrzuć
Autor

Thanks

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

Thanks

Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
2194
1
lip 25
747
1
sie 25
1150
0
maj 25
1254
2
kwi 25
3437