Skip to Content
Menu
This question has been flagged
1 Reply
1203 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
Aug 25
4100
2
May 25
1425
1
Oct 25
1223
1
Oct 24
6659
2
Jul 24
2582