HR Employee Type Private Wizard

Private access to internal / external employees

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

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

HR Employee Type Private Wizard

Context

hr_employee_type

The module hr_employee_type adds a field to distinguish Internal and External employees.

private_data_group

The module private_data_group allows to customize Private Fields on employees.

It adds a group Manage Private Information allowed to read and edit the private fields. The private fields are hidden to other users.

Summary

This module adds 2 groups.

  • Manage Private Information (Internal Employees)
  • Manage Private Information (External Employees)
static/description/user_form.png

These 2 groups have access to the private fields for their respective employee type (Internal / External).

Usage

As member of Manage Private Information (Internal Employees), I go to the form view of an internal employee.

  1. I notice a new button Private Information
  2. The Private Information tab is hidden.
static/description/internal_employee_form.png

When I click on the Private Information button, a wizard is opened:

static/description/private_wizard.png

I can edit the form and save.

I go to the form view of an external employee.

static/description/external_employee_form.png

I do not see the button Private Information because I am not member of the group Manage Private Information (External Employees).

Module Design

The reason that a wizard is used to edit the private data is because it offers more flexibility over the access control.

The wizard serves as a proxy between the user and the employee record.

Each access in read / write to the wizard is controlled with specific rules. If these checks pass, the read / write operation is applied to the related employee.

Contributors