Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3232 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi,

try this,

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

Thanks !!!  


Aswini @ iWesabe

Avatar
Zrušit

itharappa

Autor

Am I able to change the dot for a coma?

please check this,

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

Nejlepší odpověď
On reports you can set:
​<t t-esc="'%.2f' % (o.amount)"/>

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


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
led 24
5928
0
čvn 23
2439
1
pro 22
3821
0
dub 22
2941
1
dub 19
6614