Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
13270 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to get company name in qweb report? แก้ไขแล้ว
1
เม.ย. 22
22503
How to make space in qweb report? แก้ไขแล้ว
8
มี.ค. 21
30637
How to call css style in qweb report? แก้ไขแล้ว
2
ก.พ. 21
11105
4
พ.ค. 16
7692
0
มี.ค. 15
3254