Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using security group to activate features


Security groups can restrict some features so that they are accessible only to users belonging to these groups. Security groups can also inherit other groups, so they also grant their permissions.

These two features combined are used to implement a usability feature in Odoo: feature toggling. Security groups can also be used as a way to enable or disable features for some or all of the users in an Odoo instance.

This recipe shows how to add options to configuration settings and showcases the two methods to enable the additional features, making them visible using security groups or adding them by installing an additional module.

For the first case, we will make the book release dates an optional additional feature and for the second, as an example, we will provide an option to install the Notes module.

Getting ready

This recipe uses my_module described in Chapter 3, Creating Odoo Modules. We will need security groups to work with, so you also need to...