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

please I would like to help me in this issue urgent please ,

How to define globle variable in Qweb report because when i access any variabl I defined it out loop i didn't get any change when i print this variabl out loop 

thanks

Avatar
Descartar
Mejor respuesta

You could use t-set attribute

<t t-set= "user_name" t-value="user.name" > </t>
<p> Hello, <t t-esc = "user_name"/> </p>

Refer Odoo 8 documentation for Q-web template:  https://www.odoo.com/documentation/8.0/reference/qweb.html#setting-variables

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 22
22325
8
mar 21
30390
2
feb 21
10932
4
may 16
7551
0
mar 15
3095