Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2383 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć

Thanks for the info

Najlepsza odpowiedź

Hi,

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

Thanks

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
2
sty 24
1877
2
cze 22
3720
2
cze 18
5495
2
lis 16
12730
2
lut 24
11795