Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1048 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 25
3716
2
kvě 25
1192
1
led 25
1080
1
říj 24
4016
2
čvc 24
2258