This recipe uses my_module described in Chapter 4, Creating Odoo Addon Modules. We will need security groups to work with, so you also need to have followed the Adding security access to models recipe.
In this recipe, some identifiers need to refer to the addon module's technical name. We will assume that it is my_module. In case you are using a different name, replace my_module with the actual technical name of your addon module.