In Odoo, you can provide optional features through the Settings options. The user can enable or disable this option at any time. We will illustrate how to create settings options in this recipe.
Adding custom settings options
Getting ready
In previous recipes, we have added buttons so that non-librarian users can borrow and return books. This is not the case for every library, however, so we will create a settings option to enable and disable this feature. We will do this by hiding these buttons. In this recipe, we will use the same my_library module from the previous recipe.