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

I have a datetime attribute into my db. I would like to view (not write: only view) it as date. Is it possible?

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

yes, using widget="date" with the corresponding field.

example:

<field name="your_datetime_field_name" widget="date"/>
 

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

Thank you!

Related Posts ตอบกลับ มุมมอง กิจกรรม
Datetime in Odoo แก้ไขแล้ว
2
ก.ค. 18
7082
3
ส.ค. 20
9976
3
มิ.ย. 25
1010
0
เม.ย. 24
1878
4
พ.ย. 23
6002