Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
13320 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 22
22529
8
mar. 21
30680
2
fev. 21
11133
4
mai. 16
7709
0
mar. 15
3282