Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2798 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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


Аватар
Відмінити
Найкраща відповідь

Hi,

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

Thanks

Аватар
Відмінити

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

Related Posts Відповіді Переглядів Дія
2
січ. 24
2519
2
черв. 22
4463
2
черв. 18
6028
2
лист. 16
13615
2
лют. 24
12512