Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1771 Visualizzazioni

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? 

Avatar
Abbandona
Risposta migliore


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

You should make sure your code creates UTC values.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 24
3806
2
mar 15
1213
2
lug 24
9036
1
ago 21
2889
1
nov 16
10313