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
1033 Widoki

We are facing issues with wrong employee uses in shop floor since first employee forgets to logout before leaving station and second employee forgets to sign in with his/her account. 

Is there any chance to log out employe after specific time in shop floor?

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Emre,

Quick solution would be writing schedule action with following python code which execute after specifc time.

1)Activate developer mode
2) Go to Settings --> Automation -> Scheduled Actions-> Create new action
3) Configure Model = Employee and execute every X hours
4) python code:

for emp in model.search([()]):

    emp.remove_session_owner()



Thanks & Regards,


CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209

Email: info@candidroot.com

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 25
3699
2
maj 25
1177
1
sty 25
1073
1
paź 24
3538
2
lip 24
2251