Activating features with security groups
Some functions can be restricted by security groups so that they can only be accessible to people who belong to these groups. Security groups can inherit other groups, granting them permissions as well.
These two features are utilized to provide a feature toggling functionality in Odoo. Security groups may also be used to activate or disable functionality for certain users or the whole Odoo instance.
This recipe demonstrates how to add options to configuration settings and demonstrates the two approaches for enabling extra features: making them visible through security groups or adding them by installing an additional module.
For the first case, we will make the hostel start dates an optional additional feature while for the second, as an example, we will provide an option for installing the Notes module.
Getting ready
This tutorial uses the my_hostel
module, which was described in Chapter 3, Creating Odoo Add-On Modules. We will...