@@ -93,43 +93,45 @@ icon to remove a row.
93
93
- :guilabel: `Users ` tab: lists the current users in the group. Users listed in black have
94
94
administrative rights. Users without administrative access appear in blue. Click :guilabel: `Add a
95
95
line ` to add users to this group.
96
- - :guilabel: `Inherited ` tab: inherited means that users added to this group are automatically added
96
+ - :guilabel: `Inherited ` tab: Inherited means that users added to this group are automatically added
97
97
to the groups listed on this tab. Click :guilabel: `Add a line ` to add inherited groups.
98
98
99
99
.. example ::
100
100
For example, if the group *Sales/Administrator * lists the group *Website/Restricted Editor * in
101
101
its :guilabel: `Inherited ` tab, then any users added to the *Sales/Administrator * group
102
102
automatically receive access to the *Website/Restricted Editor * group, as well.
103
103
104
- - :guilabel: `Menus ` tab: defines which menus/ models the group can have access to. Click
104
+ - :guilabel: `Menus ` tab: defines which models the group can have access to. Click
105
105
:guilabel: `Add a line ` to add a specific menu.
106
106
- :guilabel: `Views ` tab: lists which views in Odoo the group has access to. Click :guilabel: `Add a
107
107
line ` to add a view to the group.
108
- - :guilabel: `Access Rights ` tab: lists the first level of rights (models) that this group has access
109
- rights to. Click :guilabel: `Add a line ` to link access rights to this group. In this tab, the
110
- :guilabel: `Model ` column represents the common name of the menu/model, and the :guilabel: `Name `
111
- column represents the technical name given to the model. For each model, enable the following
112
- options as appropriate:
108
+ - :guilabel: `Access Rights ` tab: lists the first level of rights (models) that this group has. The
109
+ :guilabel: `Name ` column represents the name for the current group's access to the model
110
+ selected in the :guilabel: `Model ` column.
113
111
114
- - :guilabel: `Read `: users can see the object's existing values.
115
- - :guilabel: `Write `: users can edit the object's existing values.
116
- - :guilabel: `Create `: users can create new values for the object.
117
- - :guilabel: `Delete `: users can delete values for the object.
112
+ To link a new access right to a group, click :guilabel: `Add a line `. Select the appropriate model
113
+ from the :guilabel: `Model ` dropdown, then enter a name for the access right in the
114
+ :guilabel: `Name ` column. For each model, enable the following options as appropriate:
115
+
116
+ - :guilabel: `Read `: Users can see the object's existing values.
117
+ - :guilabel: `Write `: Users can edit the object's existing values.
118
+ - :guilabel: `Create `: Users can create new values for the object.
119
+ - :guilabel: `Delete `: Users can delete values for the object.
118
120
119
121
.. tip ::
120
- First try searching for the common name of the model in the drop-down menu of the
121
- :guilabel: `Model ` column. The :guilabel: `Model ` technical name can be found by expanding the
122
- model common name, which can be done by clicking the :guilabel: `(external link) ` icon.
122
+ While there are no conventions for naming access rights, it is advisable to choose a name that
123
+ easily identifies its purpose.
123
124
124
- The model technical name can also be accessed in :ref: `developer mode <developer-mode >`.
125
+ For example, the access that purchase managers have to the :guilabel: `Contact ` model could be
126
+ named `res.partner.purchase.manager `. This consists of the technical name of the model,
127
+ followed by a name identifying the group of users in question.
125
128
126
- On a form, navigate to any field, and hover over the field name. A box of backend information
127
- reveals itself with the specific Odoo :guilabel: `Model ` name in the backend. This is the
128
- technical name of the model that should be added.
129
+ .. image :: access_rights/name-field.png
130
+ :alt: Name of access rights to a model
129
131
130
- .. image :: access_rights/ technical-info.png
131
- :align: center
132
- :alt: Technical information shown on a field of a model, with object highlighted .
132
+ To find the model's technical name from the current view, first enter a placeholder text
133
+ in the :guilabel: ` Name ` field, then click the :guilabel: ` Model ` name, then the
134
+ :icon: ` fa-arrow-right ` :guilabel: ` (Internal link) ` icon .
133
135
134
136
- :guilabel: `Record Rules `: lists the second layer of editing and visibility rights.
135
137
:guilabel: `Record Rules ` overwrite, or refine, the group's access rights. Click :guilabel: `Add a
0 commit comments