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

Dear,


I just wonder: How to set 00:00:00 to a datetime field in search Filter??

see below picture.



By default odoo will input current date and time. But I want to set it to 00:00:00 at From date and 23:59:59 at End date. The addon i try to modify is here:  https://apps.odoo.com/apps/modules/9.0/sgeede_date_range/


Can Anybody help me to make it? Thanks.

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

Get Date and append 00:00:00, then convert it as datetime by using  converter (strptime)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 25
826
1
thg 7 23
3512
4
thg 12 22
9484
2
thg 4 21
3564
1
thg 10 16
4357