跳至內容
選單
此問題已被標幟
2 回覆
2385 瀏覽次數

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


頭像
捨棄

Thanks for the info

最佳答案

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.

相關帖文 回覆 瀏覽次數 活動
2
1月 24
1881
2
6月 22
3721
2
6月 18
5496
2
11月 16
12736
2
2月 24
11797