Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3330 Tampilan

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

Avatar
Buang
Jawaban Terbai

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


Avatar
Buang
Jawaban Terbai

Hi,

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

Thanks

Avatar
Buang

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

Post Terkait Replies Tampilan Aktivitas
2
Jan 24
3301
2
Jun 22
5261
2
Jun 18
6716
2
Nov 16
14594
2
Feb 24
13231