Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
13280 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 22
22506
8
mar 21
30642
2
feb 21
11112
4
mag 16
7694
0
mar 15
3256