Skip to Content
Menú
This question has been flagged
1 Respondre
1029 Vistes

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?

Avatar
Descartar
Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 25
3689
2
de maig 25
1165
1
de gen. 25
1067
1
d’oct. 24
3429
2
de jul. 24
2243