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

For Quotation Date in a Sales Order, we don't need the time portion.

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

Odoo leverages the Bootstrap Tempus Dominus datepicker.


The best option is to use field options to change the format used:

options="{'datepicker': {'format': 'L'}}"


Although you can change the widget used to DATE instead of DATETIME you will encounter issues if you are not in the UTC timezone, see https://github.com/odoo/odoo/issues/55827


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

Hi,

Add widget="date" along with the field by inheriting the view.

Thanks

อวตาร
ละทิ้ง

If you are in a timezone which has a negative UTC offset, you will encounter the problem I reference.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 24
2530
2
มิ.ย. 22
4468
2
มิ.ย. 18
6036
2
พ.ย. 16
13624
2
ก.พ. 24
12519