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

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
876
0
2月 25
924
0
8月 22
2028