Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1879 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
5
lug 25
699
0
gen 24
1790
0
gen 24
1489
0
feb 22
2623
2
set 16
10377