Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8243 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

Hi,

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

Thanks

Avatar
Abbandona
Autore

Thanks

Risposta migliore

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

Avatar
Abbandona
Autore

Thanks

Post correlati Risposte Visualizzazioni Attività
2
ago 25
3396
1
lug 25
1567
1
ago 25
1152
0
mag 25
1893
2
apr 25
4175