Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2810 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

Hi,

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

Thanks

Avatar
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
2
gen 24
2534
2
giu 22
4468
2
giu 18
6036
2
nov 16
13624
2
feb 24
12520