Search code examples
pythonodooodoo-8odoo-9odoo-website

How to make a user access only the website of a Odoo application


I am making a website with Odoo website module, and I want to create a login for my clients. I don't know the best practice for doing this.

My first thought was to consider my clients as new users with restricted access, but this way I can't prevent the users for entering the Odoo. My other thought was to extend the res_partner object and add a custom login/password for them, but this way I don't know how I can handle session management, authorization with them.

What is the best way to do it? Is there a way to use Odoo authentication and avoid my clients to leave the website and enter the Odoo?


Solution

  • When creating the new user in odoo, set the user access under Applications to nothing, this way the user dosen't have access to any application and when they login by default they'll be redirected to odoo website and won't get to the backend.

    enter image description here

    Make sure you also check the portal option.