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

Hi, I made a python function that creates records in hr.attendance model.

But when i go to the attendance module and see the created records, I find them two hourse late, Although I am sure the datetime in the dabase is the correct one.
How to Solve this problem? 

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


See https://www.odoo.com/documentation/17.0/developer/reference/backend/orm.html

You should make sure your code creates UTC values.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 24
3806
2
thg 3 15
1213
2
thg 7 24
9036
1
thg 8 21
2889
1
thg 11 16
10313