Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] hr_employee_phone_pin module #1371

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions hr_employee_phone_pin/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
==================
Employee Phone PIN
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e61431300ce70fbcabc3b7605189346bb14ef0246d851180e563589336de6723
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/14.0/hr_employee_phone_pin
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_employee_phone_pin
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds the following to employees :

* Mobile phone PIN
* Mobile phone PUK

**Table of contents**

.. contents::
:local:

Usage
=====

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.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_employee_phone_pin%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Binhex

Contributors
~~~~~~~~~~~~

* `Binhex <https://binhex.cloud>`_:

* Ariel Barreiros

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-arielbarreiros96| image:: https://github.com/arielbarreiros96.png?size=40px
:target: https://github.com/arielbarreiros96
:alt: arielbarreiros96

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-arielbarreiros96|

This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/14.0/hr_employee_phone_pin>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions hr_employee_phone_pin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions hr_employee_phone_pin/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 Binhex (<https://binhex.cloud>)
# Copyright 2024 Binhex Ariel Barreiros
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "Employee Phone PIN",
"version": "14.0.1.0.0",
"category": "Human Resources",
"author": "Binhex, Odoo Community Association (OCA)",
"maintainers": ["arielbarreiros96"],
"website": "https://github.com/OCA/hr",
"license": "AGPL-3",
"depends": ["hr"],
"data": [
"views/hr_employee_views.xml",
"security/hr_security.xml",
"views/hr_employee_public_views.xml",
],
"installable": True,
}
115 changes: 115 additions & 0 deletions hr_employee_phone_pin/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_employee_phone_pin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-21 12:56+0000\n"
"PO-Revision-Date: 2024-06-21 12:56+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: hr_employee_phone_pin
#: model:res.groups,comment:hr_employee_phone_pin.group_mobile_phone_pin_manager
msgid ""
"\n"
" The user will have an access for changing the PIN and PUK of the\n"
" employee's corporate phone."
msgstr ""
"\n"
" El usuario tendrá acceso para cambiar el PIN y PUK del teléfono\n"
" corporativo del empleado."

#. module: hr_employee_phone_pin
#: model:res.groups,comment:hr_employee_phone_pin.group_mobile_phone_pin_user
msgid ""
"\n"
" The user will have an access for seeing the PIN and PUK of the\n"
" employee's corporate phone on its employee record."
msgstr ""
"\n"
" El usuario tendrá un acceso para ver el PIN y PUK del\n"
" teléfono corporativo del empleado en su ficha de empleado."

#. module: hr_employee_phone_pin
#: model:res.groups,name:hr_employee_phone_pin.group_mobile_phone_pin_manager
msgid "Change PIN/PUK"
msgstr "Cambiar PIN/PUK"

#. module: hr_employee_phone_pin
#: model:ir.model.fields,help:hr_employee_phone_pin.field_hr_employee__mobile_phone_pin
msgid "Corporate mobile's PIN, should be a 4 digit number"
msgstr "PIN del móvil corporativo, debe ser un número de 4 dígitos"

#. module: hr_employee_phone_pin
#: model:ir.model.fields,help:hr_employee_phone_pin.field_hr_employee__mobile_phone_puk
msgid "Corporate mobile's PUK, should be a 8 digit number"
msgstr "PUK del móvil corporativo, debe ser un número de 8 dígitos"

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__display_name
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: hr_employee_phone_pin
#: model:ir.model,name:hr_employee_phone_pin.model_hr_employee
msgid "Employee"
msgstr "Empleado"

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__id
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__id
msgid "ID"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__is_current_user
msgid "Is Current User"
msgstr "Es usuario actual"

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee____last_update
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public____last_update
msgid "Last Modified on"
msgstr "Última modificación el"

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__mobile_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__mobile_phone_pin
msgid "Mobile phone PIN"
msgstr "PIN Teléfono móvil"

#. module: hr_employee_phone_pin
#: code:addons/hr_employee_phone_pin/models/hr_employee.py:0
#, python-format
msgid "Mobile phone PIN should be a 4 digit number."
msgstr "El PIN del teléfono móvil debe ser un número de 4 dígitos."

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__mobile_phone_puk
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__mobile_phone_puk
msgid "Mobile phone PUK"
msgstr "PUK Teléfono móvil"

#. module: hr_employee_phone_pin
#: code:addons/hr_employee_phone_pin/models/hr_employee.py:0
#, python-format
msgid "Mobile phone PUK should be a 8 digit number."
msgstr "El PUK del teléfono móvil debe ser un número de 8 dígitos."

#. module: hr_employee_phone_pin
#: model:ir.model,name:hr_employee_phone_pin.model_hr_employee_public
msgid "Public Employee"
msgstr "Empleado público"

#. module: hr_employee_phone_pin
#: model:res.groups,name:hr_employee_phone_pin.group_mobile_phone_pin_user
msgid "See PIN/PUK"
msgstr "Ver PIN/PUK"
109 changes: 109 additions & 0 deletions hr_employee_phone_pin/i18n/hr_employee_phone_pin.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_employee_phone_pin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-21 12:56+0000\n"
"PO-Revision-Date: 2024-06-21 12:56+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: hr_employee_phone_pin
#: model:res.groups,comment:hr_employee_phone_pin.group_mobile_phone_pin_manager
msgid ""
"\n"
" The user will have an access for changing the PIN and PUK of the\n"
" employee's corporate phone."
msgstr ""

#. module: hr_employee_phone_pin
#: model:res.groups,comment:hr_employee_phone_pin.group_mobile_phone_pin_user
msgid ""
"\n"
" The user will have an access for seeing the PIN and PUK of the\n"
" employee's corporate phone on its employee record."
msgstr ""

#. module: hr_employee_phone_pin
#: model:res.groups,name:hr_employee_phone_pin.group_mobile_phone_pin_manager
msgid "Change PIN/PUK"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,help:hr_employee_phone_pin.field_hr_employee__mobile_phone_pin
msgid "Corporate mobile's PIN, should be a 4 digit number"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,help:hr_employee_phone_pin.field_hr_employee__mobile_phone_puk
msgid "Corporate mobile's PUK, should be a 8 digit number"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__display_name
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__display_name
msgid "Display Name"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model,name:hr_employee_phone_pin.model_hr_employee
msgid "Employee"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__id
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__id
msgid "ID"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__is_current_user
msgid "Is Current User"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee____last_update
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public____last_update
msgid "Last Modified on"
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__mobile_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__mobile_phone_pin
msgid "Mobile phone PIN"
msgstr ""

#. module: hr_employee_phone_pin
#: code:addons/hr_employee_phone_pin/models/hr_employee.py:0
#, python-format
msgid "Mobile phone PIN should be a 4 digit number."
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee__mobile_phone_puk
#: model:ir.model.fields,field_description:hr_employee_phone_pin.field_hr_employee_public__mobile_phone_puk
msgid "Mobile phone PUK"
msgstr ""

#. module: hr_employee_phone_pin
#: code:addons/hr_employee_phone_pin/models/hr_employee.py:0
#, python-format
msgid "Mobile phone PUK should be a 8 digit number."
msgstr ""

#. module: hr_employee_phone_pin
#: model:ir.model,name:hr_employee_phone_pin.model_hr_employee_public
msgid "Public Employee"
msgstr ""

#. module: hr_employee_phone_pin
#: model:res.groups,name:hr_employee_phone_pin.group_mobile_phone_pin_user
msgid "See PIN/PUK"
msgstr ""
1 change: 1 addition & 0 deletions hr_employee_phone_pin/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import hr_employee
Loading
Loading