Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
13312 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 22
22522
8
mar 21
30670
2
lut 21
11126
4
maj 16
7702
0
mar 15
3274