Chapter 10. Access Security

In this chapter, we will see how to:

  • Create security groups and assign them to users
  • Add security access to models
  • Limit access to fields in models
  • Limit record access using record rules
  • Use security group to activate features

In order to concisely get the point across, the recipes in this chapter make small additions to an existing module. We chose to use the module created by the recipes in Chapter 3, Creating Odoo Modules. To better follow the examples here, you should have that module created and ready to use.

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 ...

Get Odoo Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.