Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6546 มุมมอง

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 :(

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ย. 24
3356
2
ต.ค. 20
3769
1
ม.ค. 24
1903
1
เม.ย. 23
4168
Change Report template in odoo 11 CE แก้ไขแล้ว
1
ก.พ. 19
7811