Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2843 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

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

Thanks

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 24
2593
2
thg 6 22
4524
2
thg 6 18
6073
2
thg 11 16
13700
2
thg 2 24
12566