Restricting access to web-accessible paths
As an Odoo developer, one of your primary concerns is ensuring the security of the application. Restricting access to web-accessible paths is a crucial aspect of access control. It involves determining who can or cannot access specific routes or functionalities within the Odoo application. Odoo provides different authentication mechanisms to control user access. Understanding and implementing these mechanisms is essential for ensuring that only authorized users can interact with sensitive or protected parts of the application. For instance, you might want to restrict certain routes to authenticated users only.
We’ll explore the three authentication mechanisms Odoo provides for routes in this recipe. We’ll define routes with different authentication mechanisms in order to show their differences.
Getting ready
As we extend the code from the previous recipe, we’ll also depend on the hostel.student
model of Chapter...