Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3221 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

try this,

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

Thanks !!!  


Aswini @ iWesabe

Awatar
Odrzuć

itharappa

Autor

Am I able to change the dot for a coma?

please check this,

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

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

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 24
5914
0
cze 23
2431
1
gru 22
3812
0
kwi 22
2926
1
kwi 19
6604