Skip to Content
Menú
This question has been flagged
1 Respondre
13126 Vistes

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
Best Answer

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
Related Posts Respostes Vistes Activitat
1
d’abr. 22
22306
8
de març 21
30353
2
de febr. 21
10918
4
de maig 16
7502
0
de març 15
3089