跳至內容
選單
此問題已被標幟
1 回覆
6516 瀏覽次數

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

頭像
捨棄

Thanks for your valuable information.SARATH V C

最佳答案

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.  


頭像
捨棄
作者

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

相關帖文 回覆 瀏覽次數 活動
3
11月 24
3294
2
10月 20
3761
1
1月 24
1887
1
4月 23
4115
1
2月 19
7789