Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6415 Zobrazení

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
Zrušit

Thanks for your valuable information.SARATH V C

Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
3
lis 24
3164
2
říj 20
3708
1
led 24
1795
1
dub 23
3981
1
úno 19
7723