Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1498 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
5
jul 25
408
0
ene 24
1584
0
ene 24
1263
0
feb 22
2473
2
sept 16
10082