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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
3234
瀏覽次數
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
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
1月 24
|
5933 | ||
|
0
6月 23
|
2444 | ||
|
1
12月 22
|
3825 | ||
|
0
4月 22
|
2943 | ||
|
1
4月 19
|
6618 |