Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2824 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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


Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

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

Thanks

Imagine profil
Abandonează

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

Related Posts Răspunsuri Vizualizări Activitate
2
ian. 24
2550
2
iun. 22
4478
2
iun. 18
6041
2
nov. 16
13641
2
feb. 24
12526