Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2834 Näkymät

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

Hi,

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

Thanks

Avatar
Hylkää

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
tammik. 24
2571
2
kesäk. 22
4501
2
kesäk. 18
6063
2
marrask. 16
13678
2
helmik. 24
12538