跳至内容
菜单
此问题已终结
2 回复
5421 查看

Is there a module that get all currently logged in users?

形象
丢弃
最佳答案

You can create a boolean field in res.users object which will be checked (True) if user has loggedin and will be unchecked (False) if user has logged out.

形象
丢弃
编写者

How can I automatically set it?What if the users just closed it's browser without logging out.

For this you have to develop a custom module and with js, you can handle browser close event.

最佳答案

There isn't any module available that provide you list of logged in users. OpenEPR only records last login date in database and not logout_date.  

 

形象
丢弃