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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jan 24
|
1127 | ||
|
0
Jan 24
|
849 | ||
|
0
Feb 22
|
2115 | ||
|
2
Sep 16
|
9635 | ||
|
2
Dec 15
|
4910 |