Creating security groups and assigning them to users
Security access in Odoo is configured through security groups: permissions are given to groups and then groups are assigned to users. Each functional area has base security groups provided by a central application.
When add-on modules augment an existing application, they should add rights to the respective groups, as explained in the Adding security access to models recipe.
When add-on modules introduce a new functional area that is not yet covered by an existing core application, the associated security groups should be added. We should usually have at least user and management roles.
Take the Hostel example we introduced in Chapter 3, Creating Odoo Add-On Modules, as an example – it doesn’t fit neatly into any of the Odoo core apps, so we will add security groups for it.
Getting ready
This tutorial assumes that you have an Odoo instance ready with my_hostel
available, as described in Chapter 3, Creating...