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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
2
Antworten
3214
Ansichten
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
2
Jan. 24
|
5914 | ||
|
0
Juni 23
|
2431 | ||
|
1
Dez. 22
|
3812 | ||
|
0
Apr. 22
|
2926 | ||
|
1
Apr. 19
|
6603 |