Adding security access to models
It’s common for add-on modules to add new models. For example, in Chapter 3, Creating Odoo Add-On Modules, we added a new Hostel model. It is easy to miss out on creating security access for new models during development, and you might find it hard to see menus and views that have been created. This is because, from Odoo version 12, admin users don’t get default access rights to new models. To see the views and menus for the new model, you need to add security ACLs.
However, models with no ACLs will trigger a warning log message upon loading, informing the user about the missing ACL definitions:
WARNING The model hostel.hostel has no access rules, consider adding one example, access_hostel_hostel, access_hostel_hostel, model_hostel_hostel, base.group_user,1,0,0,0
You may also access freshly uploaded models as a superuser, which circumvents all security requirements. For further information, see the Accessing Odoo as a superuser...