Skip to content

Commit 1c4392f

Browse files
committed
[FIX] general: correcting explanation of name column in access rights tab
Task-4639525 closes #12559 X-original-commit: 9a110c8 Signed-off-by: Audrey Vandromme (auva) <auva@odoo.com> Signed-off-by: Siobhan McGonigle (mcsi) <mcsi@odoo.com>
1 parent fb7d857 commit 1c4392f

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

content/applications/general/users/access_rights.rst

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,43 +93,45 @@ icon to remove a row.
9393
- :guilabel:`Users` tab: lists the current users in the group. Users listed in black have
9494
administrative rights. Users without administrative access appear in blue. Click :guilabel:`Add a
9595
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
9797
to the groups listed on this tab. Click :guilabel:`Add a line` to add inherited groups.
9898

9999
.. example::
100100
For example, if the group *Sales/Administrator* lists the group *Website/Restricted Editor* in
101101
its :guilabel:`Inherited` tab, then any users added to the *Sales/Administrator* group
102102
automatically receive access to the *Website/Restricted Editor* group, as well.
103103

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
105105
:guilabel:`Add a line` to add a specific menu.
106106
- :guilabel:`Views` tab: lists which views in Odoo the group has access to. Click :guilabel:`Add a
107107
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.
113111

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

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

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

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
129131

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

134136
- :guilabel:`Record Rules`: lists the second layer of editing and visibility rights.
135137
:guilabel:`Record Rules` overwrite, or refine, the group's access rights. Click :guilabel:`Add a
8.81 KB
Loading
-20.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)