Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1828 มุมมอง

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? 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด


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

You should make sure your code creates UTC values.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 24
3841
2
มี.ค. 15
1213
2
ก.ค. 24
9086
Import attendance in UTC แก้ไขแล้ว
1
ส.ค. 21
2915
1
พ.ย. 16
10337