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

For eg: 08:15 in database it will store ad 8.25 

When we print in rml report it displays  8.25 but I need 8:15

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi NareshKumar,

You need to follow the below code. Please refer.

<span t-esc="'%02d:%02d' % (int(line.review_planning), line.review_planning % 1 * 60)"/>

Here, review_planning is the float_time field.

Hope this thing helps you.

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Hi Jainesh Shah,

Thanks for your answer.

But I need to print value in rml report,

คำตอบที่ดีที่สุด

Hi,

You can do it like this,  take the decimal part alone and multiply it with 60 and concatenate this value  with the integer value.

Thanks

อวตาร
ละทิ้ง