Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3229 Tampilan

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?

Avatar
Buang
Jawaban Terbai

Hi,

try this,

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

Thanks !!!  


Aswini @ iWesabe

Avatar
Buang

itharappa

Penulis

Am I able to change the dot for a coma?

please check this,

<span t-esc="str('%.2f'%obj.field_name).replace('.', ',')"/>

Jawaban Terbai
On reports you can set:
​<t t-esc="'%.2f' % (o.amount)"/>

for example, if o is the object and amount the field


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jan 24
5924
0
Jun 23
2437
1
Des 22
3819
0
Apr 22
2934
1
Apr 19
6610