Restricted administration rights

by ,
Odoo          
v 11.0 Third Party 96

30.00 €

You bought this module and need support ? Click here !
Technical name access_restricted
LicenseLGPL-3
Websitehttps://twitter.com/yelizariev
Read description for v 12.0 v 10.0 v 9.0 v 8.0
Included Dependencies

Restricted administration rights

The module makes impossible for administrator to set (and see) more access rights (groups) than he already has. The only partial exception of this rule is made if you are already a member of the 'Allow add implied groups from settings' security group. Then you are allowed to escalate your privileges but just from Settings menus (by means of group_XXX boolean fields of res.config.settings models views).

This doesn't affect superuser, of course.

Typical usage of the module.

The superuser creates an administrator user without access group "Show Apps Menu" (see access_apps module). Then the administrator has access to settings, but not able to install new apps (without this module he can add himself to "Show Apps Menu" and get access to apps). For Odoo versions older than https://github.com/odoo/odoo/commit/5f12e244f6e57b8edb56788147774150e2ae134d check for access rules in the write method is duplicated with ORM methods, please update Odoo for higher performance

Tested on Odoo 11.0 aefbd6da12748f078a197e5e3ae0c1cd68b2e6c5

Restricted administration rights

Installation

  • Install this module in a usual way

Configuration

  • By default all users except a superuser restricted to escalate the privileges
  • There is only one configuration option this module provides. Open menu [[ Settings  ]] >> Users & Companies >> Users
  • In Access Rights tab you can select 'Allow add implied groups from settings' - to allow some users to configurate modules by means of group_XXX fields from Settings menus

Usage

Let's take Sale module as an example.

Without this module installed:

  • Say you have a user with administration rights Administration: Access Rights. This user thus may increase his own rights in Application Accesses from Sales: User: All Documents to Sales: Manager. Also he can open menu [[ Sales ]] >> Configuration >> Settings and select Customer Addresses there and then click [Apply] button (adding group_sale_delivery_address)

With this module installed:

  • The user from previous example cannot increase his privileges. There is no Sales: Manager option for him, and also no Customer Addresses option in module configuration
  • The only exception is done for users who are in special group 'Allow add implied groups from settings' - if your user is included in this group by the superuser then you may select Customer Addresses from Sale module Configuration >> Settings menu

Please log in to comment on this module

  • This section is meant to ask simple questions or leave a rating.
  • This author can leave a single reply to each comment.
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.