Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
13142 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 22
22332
8
bře 21
30398
2
úno 21
10934
4
kvě 16
7551
0
bře 15
3099