Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6491 Visualizzazioni

Hello everyone.
I have no experience with qweb, that's why I need help.
i am trying to show only 2 decimals in the invoice but i could only do it with one field:

t-options="{'widget': 'float', 'precision': 2}"


but the other values ​​I can't identify

or I don't know how to identify them.

Thanks in advance

https://docs.google.com/document/d/1DI7gZsA_WweaB62RpOqQbhzpwA4cgc2euAPzbXFixB8/edit?usp=sharing

Avatar
Abbandona

Thanks for your valuable information.SARATH V C

Risposta migliore

You can use the following format inside the qweb.

Syntax:

t-esc="round(field_name, decimal_precision)"

Example :

t-esc="round(your_field,2)" this will round to two decimals.  


Avatar
Abbandona
Autore

Thanks for your help, how could I do it if you could exemplify it please. I have no experience in qweb :(

Post correlati Risposte Visualizzazioni Attività
3
nov 24
3268
2
ott 20
3751
1
gen 24
1882
1
apr 23
4099
1
feb 19
7772