İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6422 Görünümler

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
Vazgeç

Thanks for your valuable information.SARATH V C

En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Kas 24
3177
2
Eki 20
3710
1
Oca 24
1806
1
Nis 23
3987
1
Şub 19
7725