Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3227 Переглядів

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
січ. 24
5922
0
черв. 23
2435
1
груд. 22
3818
0
квіт. 22
2930
1
квіт. 19
6610