Odoo python
Ensure that the developer mode is activated. You can activate developer mode by adding ?debug=1 to the URL or by clicking on the "Activate the developer mode" link at the bottom of the settings page.
Navigate to Settings -> Users & Companies -> Users.
Under the "Access Rights" tab, you can assign the user to different groups. Each group has predefined access rights.
Navigate to Settings -> Users & Companies -> Groups.
Here, you can see all the available groups and their permissions. You can create new groups or modify existing ones to customise access rights.
To define access rights in a custom module, you need to createir.model.access.csv and optionally usesecurity.xml for record rules. Here is how you can do it:
Create or update their.model.access.csv file in your module'ssecurity directory. This file defines which groups have what kind of access to each model.
Example:security/ir.model.access.csv
2. Define Record Rules insecurity.xml
Record rules are used to define domain-based access controls. Create or update thesecurity.xml file in your module'ssecurity directory.
Example:security/security.xml