Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4610 Vistas

How can i securely render HTML formated text with some allowed tags like <b> <i> on a odoo qweb report.

I don't trust t-raw. 

There are any odoo module or example code for this?

Avatar
Descartar
Mejor respuesta

Hi,

use following approaches;

<t t-if="your_conditions">
     <b></b>
</t>
or
<b t-if="condition">Sample Text</b>


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 23
27597
2
jul 23
7497
1
jun 23
5025
1
abr 23
5733
1
nov 22
4327