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}"/>Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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="{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}"/>Best regards
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
5
jul. 25
|
965 | ||
|
|
0
jan. 24
|
2088 | ||
|
|
0
jan. 24
|
1808 | ||
|
|
0
fev. 22
|
2816 | ||
|
|
2
set. 16
|
10781 |