Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2818 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

Hi,

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

Thanks

Avatar
Verwerfen

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Jan. 24
2541
2
Juni 22
4471
2
Juni 18
6036
2
Nov. 16
13629
2
Feb. 24
12525