I have the decimal precision in Price to five 0. The problem is that in Sales Orders is so ugly to see 5 zero because we only use max. 2. Is there any widget or code to put in the reports to say that in the uni price and total price only two 0 as decimal?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
3217
Lượt xem
itharappa
Am I able to change the dot for a coma?
please check this,
<span t-esc="str('%.2f'%obj.field_name).replace('.', ',')"/>
On reports you can set:
<t t-esc="'%.2f' % (o.amount)"/>
for example, if o is the object and amount the field
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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 | |
---|---|---|---|---|
Merge Same Item in Sale Order Line
Đã xử lý
|
|
2
thg 1 24
|
5914 | |
|
0
thg 6 23
|
2431 | ||
|
1
thg 12 22
|
3812 | ||
|
0
thg 4 22
|
2926 | ||
|
1
thg 4 19
|
6603 |