コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
13274 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 22
22504
8
3月 21
30640
2
2月 21
11107
4
5月 16
7693
0
3月 15
3254