Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
13680 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Apr 22
22970
8
Mar 21
31106
2
Feb 21
11499
4
Mei 16
8085
0
Mar 15
3678