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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
5
thg 7 25
|
966 | ||
|
|
0
thg 1 24
|
2089 | ||
|
|
0
thg 1 24
|
1810 | ||
|
|
0
thg 2 22
|
2817 | ||
|
|
2
thg 9 16
|
10785 |