Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
13275 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
22504
8
thg 3 21
30640
2
thg 2 21
11107
4
thg 5 16
7693
0
thg 3 15
3254