OdooWiki OCA HUB

Employee Phone PIN

hr_employee_phone_pin folder_open OCA/hr open_in_new
Human Resources License: AGPL-3

This module adds the following to employees :

  • Mobile phone PIN
  • Mobile phone PUK

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Store the PIN and PUK codes of an employee's corporate mobile phone directly on the employee record, with access controlled by two new user groups.

This module adds two extra fields to employee records: Mobile phone PIN and Mobile phone PUK, shown right after the mobile phone number on the employee form.

  • The PIN must be exactly 4 digits and the PUK exactly 8 digits. If someone types letters or a wrong number of digits, Odoo refuses to save and shows an error message.
  • Two new access groups control who can see or change these codes: "See PIN/PUK" and "Change PIN/PUK". Only users in the appropriate group see the fields on the employee form.
  • On the public employee profile (the lighter employee view), the PIN and PUK are read-only and are only visible to the employee themselves, based on a computed flag that checks whether the record belongs to the current user.
  • The module extends the hr.employee and hr.employee.public models and adds the fields to the standard employee form views.

No menus, reports, emails or scheduled actions are added; everything happens inside the existing employee screens.

Depends on

hr
Models and fields (2)
  • hr.employee · extends an existing modelmobile_phone_pin (Mobile phone PIN), mobile_phone_puk (Mobile phone PUK)
  • hr.employee.public · extends an existing modelis_current_user, mobile_phone_pin, mobile_phone_puk

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 16.0

On the employee form view you will have 2 fields, one for Corporate Mobile's PIN, and a second one for Corporate Mobile's PUK. Both fields are optional. PIN field will only accept 4 digit numbers, meanwhile PUK will only accept 8 digit numbers. Users in the 'Officer : Manage all employees' group or a group with higher privileges must belong to the 'Change PIN/PUK' group to be able to view and edit the employee's PIN/PUK. Users who are not in at least the 'Officer : Manage all employees' group must be in the 'View PIN/PUK' group to view their own PIN and PUK on their employee record.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.