Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2805 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Hi,

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

Thanks

Avatar
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
2
led 24
2523
2
čvn 22
4464
2
čvn 18
6033
2
lis 16
13620
2
úno 24
12515