跳至内容
菜单
此问题已终结
2 回复
3220 查看

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?

形象
丢弃
最佳答案

Hi,

try this,

  <span t-esc="'%.2f'% field_name"/>

Thanks !!!  


Aswini @ iWesabe

形象
丢弃

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
5914
0
6月 23
2431
1
12月 22
3812
0
4月 22
2926
1
4月 19
6604