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
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
|
5
7月 25
|
968 | ||
|
|
0
1月 24
|
2090 | ||
|
|
0
1月 24
|
1811 | ||
|
|
0
2月 22
|
2820 | ||
|
|
2
9月 16
|
10789 |