İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2792 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

Hi,

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

Thanks

Avatar
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 24
2516
2
Haz 22
4462
2
Haz 18
6026
2
Kas 16
13610
2
Şub 24
12511