跳至內容
選單
此問題已被標幟
1 回覆
1403 瀏覽次數

I need to add amount field in a qweb report. Both t-field and t-esc have not worked. All currency configurations are ok.  Here is the code:


<span t-esc="o.amount_total" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
頭像
捨棄
最佳答案

Hello, 


try:                                           


<span t-field="o.amount_total" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.pricelist_id.currency_id}"/>


Best regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
5
7月 25
281
0
1月 24
1519
0
1月 24
1218
0
2月 22
2440
2
9月 16
10029