Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1820 Vues

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
Ignorer
Meilleure réponse


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

You should make sure your code creates UTC values.

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
juil. 24
3837
2
mars 15
1213
2
juil. 24
9078
1
août 21
2908
1
nov. 16
10332