Skip to Content
Menu
This question has been flagged
2 Replies
2819 Rodiniai

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

Portretas
Atmesti
Best Answer

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


Portretas
Atmesti
Best Answer

Hi,

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

Thanks

Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
2
saus. 24
2541
2
birž. 22
4471
2
birž. 18
6036
2
lapkr. 16
13629
2
vas. 24
12525