Skip to Content
Menú
This question has been flagged
1 Respondre
1420 Vistes

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}"/>
Avatar
Descartar
Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
5
de jul. 25
293
0
de gen. 24
1524
0
de gen. 24
1229
0
de febr. 22
2442
2
de set. 16
10040