Base View Mode Restricted

Add view mode restrictions on window actions

Technical Name:
base_view_mode_restricted
License:
Author:
Numigi
Website:
https://kastor.lab.numigi.net/web/image/product.template/941/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Base View Mode Restricted

This module allows to restrict the view modes of a given action to a specific group.

Configuration

I go to the list of Window Actions.

static/description/window_action_list.png

I select the action view All Timesheets.

static/description/window_action_list_filtered.png

In the form view of the action, I notice a new section View Restrictions.

static/description/window_action_restrictions_empty.png

I define a new rule so that only Administrators can see the graph and pivot view types.

static/description/window_action_restrictions_filled.png

The column View Modes must contain the technical names of the view modes to restrict, separated by commas.

If no user group is specified, then the view modes are disabled for everyone.

Usage

Connected as a non-administrator, I go to Timesheets > Timesheet > All Timesheets.

I notice that the pivot and graph views are not available.

static/description/timesheet_view_no_pivot.png

Connected as an administrator, I go to Timesheets > Timesheet > All Timesheets.

I notice that the pivot and graph views are available.

static/description/timesheet_view_with_pivot.png

Security

This module does not add any real security.

Users without the access to a view mode can find a workaround to access the data.

Contributors