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
回复
3225
查看
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
|
5922 | ||
|
0
6月 23
|
2435 | ||
|
1
12月 22
|
3818 | ||
|
0
4月 22
|
2930 | ||
|
1
4月 19
|
6610 |