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

I would like to show the date but not time of a quotation.

for variable doc.date_order, it shows something like 11/18/2016 18:07:43, but I only want the date to be shown.

Any idea how to set the date format?

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

Hi Robert

I have explained to Damian

https://www.odoo.com/forum/help-1/question/change-date-format-from-date-time-to-just-date-110791#answer-110806

May cause problem at all references  if you change the field type.

I shall explained you another solution. You make invisible the existing field. Then add an additional Date field in form.

Then pass the value of new field to old field by overriding create and write method.

All the best !


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

You could just set the widget date for that field in the view and I think that you will be ok

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 24
2435
2
มิ.ย. 22
4384
2
มิ.ย. 18
5937
2
ก.พ. 24
12425
0
ต.ค. 23
2789