Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1013 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 25
3616
2
may 25
1085
1
ene 25
1025
1
oct 24
2886
2
jul 24
2192