콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6709 화면

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
3562
2
10월 20
3848
1
1월 24
2028
1
4월 23
4354
1
2월 19
7916