Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2808 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

Hi,

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

Thanks

Avatar
Ignorer

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

Publications associées Réponses Vues Activité
2
janv. 24
2530
2
juin 22
4468
2
juin 18
6036
2
nov. 16
13624
2
févr. 24
12519