콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
1 회신
1987 화면

i have a custom report that i display the line.price.unit the decimal places was set as 4. 

but on the printout  i want to display only 2 decimal places so i did this 


'>>  t-esc="'%.2f'%(line.price_unit)"/

Now, i have a problem , if i have unit price is 3500.00 i want to display it with comma  to be like this 3,500.00 


아바타
취소
베스트 답변

Hi,

You can use "

<t t-esc="'{0:,.2f}'.format(line.price_unit)" />

" to do that.

Regards

아바타
취소
관련 게시물 답글 화면 활동
2
7월 25
879
0
2월 25
925
0
8월 22
2029