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

Create security groups and assign 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 the addon modules extend an existing application, they should add permissions to the corresponding groups, as shown in the Add security access to models recipe later.

When the addon modules add a new functional area, not yet covered by an existing central application, they should add the corresponding security groups. Usually, we should have at least the user and manager roles.

Taking the Library example we introduced in Chapter 3, Creating Odoo Modules, it doesn't fit neatly in any of the Odoo core apps, so we add the security groups for it.

Getting ready

This recipe assumes you have an instance ready, with the my_module available, as described in Chapter 3, Creating Odoo Modules .

How to do it...

To add new access security groups...