Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2030 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
5
jul. 25
773
0
jan. 24
1871
0
jan. 24
1560
0
fev. 22
2668
2
set. 16
10507