This question has been flagged
3 Replies
3404 Views

I want to disable the login process in openerp after working hours:

       Is it possible to do that? because some of the data that stored in openerp is confidential. Employees can only access this while in the office. if yes,  how is that? Can anyone please help me

Avatar
Discard
Best Answer

I'd recommend you to start searching the string login in the python files. I can't tell you which one are you using without your authentication details. 

Then you should create a function overriding this one adding your function (I'd recommend you to use a custom module).

Good luck,
Pau

Avatar
Discard
Best Answer

Hi, check file

openerp/addons/base/res/res_users.py

I think you can override check_credentials method.

Avatar
Discard
Author

how will i going to add the time in this code?

Best Answer

Hello

You can put validation on login button.

On validation you check time is valid then login

otherwise skip it.
 

Avatar
Discard
Author

thanks Nirav how can i put that validation?

Author

do I need to code that??