コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2806 ビュー

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.

関連投稿 返信 ビュー 活動
2
1月 24
2523
2
6月 22
4464
2
6月 18
6033
2
11月 16
13620
2
2月 24
12515