Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1795 Widoki

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? 

Awatar
Odrzuć
Najlepsza odpowiedź


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

You should make sure your code creates UTC values.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 24
3815
2
mar 15
1213
2
lip 24
9063
1
sie 21
2896
1
lis 16
10323