From e5a6fe5f35d5d2ee40998e8a674f0b6fcd850d3e Mon Sep 17 00:00:00 2001 From: Alfredo Date: Wed, 30 Oct 2024 11:43:42 +0100 Subject: [PATCH] [16.0][ADD] hr_employee_private_informtion_admin_group: In employee form view, show private information if the user is in the administrator group. --- .../README.rst | 30 +++++++++++++++++++ .../__init__.py | 0 .../__manifest__.py | 15 ++++++++++ .../i18n/ca_ES.po | 15 ++++++++++ .../i18n/en_GB.po | 15 ++++++++++ .../i18n/es.po | 15 ++++++++++ .../i18n/fr.po | 15 ++++++++++ ...ployee_private_information_admin_group.pot | 15 ++++++++++ .../views/hr_employee_views.xml | 15 ++++++++++ ...r_employee_private_information_admin_group | 1 + .../setup.py | 6 ++++ 11 files changed, 142 insertions(+) create mode 100644 hr_employee_private_information_admin_group/README.rst create mode 100644 hr_employee_private_information_admin_group/__init__.py create mode 100644 hr_employee_private_information_admin_group/__manifest__.py create mode 100644 hr_employee_private_information_admin_group/i18n/ca_ES.po create mode 100644 hr_employee_private_information_admin_group/i18n/en_GB.po create mode 100644 hr_employee_private_information_admin_group/i18n/es.po create mode 100644 hr_employee_private_information_admin_group/i18n/fr.po create mode 100644 hr_employee_private_information_admin_group/i18n/hr_employee_private_information_admin_group.pot create mode 100644 hr_employee_private_information_admin_group/views/hr_employee_views.xml create mode 120000 setup/hr_employee_private_information_admin_group/odoo/addons/hr_employee_private_information_admin_group create mode 100644 setup/hr_employee_private_information_admin_group/setup.py diff --git a/hr_employee_private_information_admin_group/README.rst b/hr_employee_private_information_admin_group/README.rst new file mode 100644 index 00000000..d63dc137 --- /dev/null +++ b/hr_employee_private_information_admin_group/README.rst @@ -0,0 +1,30 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +=========================================== +Hr employee private information admin group +=========================================== + +* In employee form view, show "private information", and "HR Settigs" if the + user is in the hr administrator group. + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, +please check there if your issue has already been reported. If you spotted +it first, help us smash it by providing detailed and welcomed feedback. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Contributors +------------ + +* Ana Juaristi +* Alfredo de la Fuente diff --git a/hr_employee_private_information_admin_group/__init__.py b/hr_employee_private_information_admin_group/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/hr_employee_private_information_admin_group/__manifest__.py b/hr_employee_private_information_admin_group/__manifest__.py new file mode 100644 index 00000000..36484a51 --- /dev/null +++ b/hr_employee_private_information_admin_group/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Hr Employee Private Information Admin Group", + "version": "16.0.1.0.0", + "category": "Human Resources/Attendances", + "license": "AGPL-3", + "author": "AvanzOSC", + "website": "https://github.com/avanzosc/hr-addons", + "depends": [ + "hr", + ], + "data": ["views/hr_employee_views.xml"], + "installable": True, +} diff --git a/hr_employee_private_information_admin_group/i18n/ca_ES.po b/hr_employee_private_information_admin_group/i18n/ca_ES.po new file mode 100644 index 00000000..720db574 --- /dev/null +++ b/hr_employee_private_information_admin_group/i18n/ca_ES.po @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-30 10:38+0000\n" +"PO-Revision-Date: 2024-10-30 10:38+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" diff --git a/hr_employee_private_information_admin_group/i18n/en_GB.po b/hr_employee_private_information_admin_group/i18n/en_GB.po new file mode 100644 index 00000000..720db574 --- /dev/null +++ b/hr_employee_private_information_admin_group/i18n/en_GB.po @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-30 10:38+0000\n" +"PO-Revision-Date: 2024-10-30 10:38+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" diff --git a/hr_employee_private_information_admin_group/i18n/es.po b/hr_employee_private_information_admin_group/i18n/es.po new file mode 100644 index 00000000..412993ea --- /dev/null +++ b/hr_employee_private_information_admin_group/i18n/es.po @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-30 10:39+0000\n" +"PO-Revision-Date: 2024-10-30 10:39+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" diff --git a/hr_employee_private_information_admin_group/i18n/fr.po b/hr_employee_private_information_admin_group/i18n/fr.po new file mode 100644 index 00000000..720db574 --- /dev/null +++ b/hr_employee_private_information_admin_group/i18n/fr.po @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-30 10:38+0000\n" +"PO-Revision-Date: 2024-10-30 10:38+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" diff --git a/hr_employee_private_information_admin_group/i18n/hr_employee_private_information_admin_group.pot b/hr_employee_private_information_admin_group/i18n/hr_employee_private_information_admin_group.pot new file mode 100644 index 00000000..174542a2 --- /dev/null +++ b/hr_employee_private_information_admin_group/i18n/hr_employee_private_information_admin_group.pot @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-30 10:37+0000\n" +"PO-Revision-Date: 2024-10-30 10:37+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" diff --git a/hr_employee_private_information_admin_group/views/hr_employee_views.xml b/hr_employee_private_information_admin_group/views/hr_employee_views.xml new file mode 100644 index 00000000..c78600e6 --- /dev/null +++ b/hr_employee_private_information_admin_group/views/hr_employee_views.xml @@ -0,0 +1,15 @@ + + + + hr.employee + + + + hr.group_hr_manager + + + hr.group_hr_manager + + + + diff --git a/setup/hr_employee_private_information_admin_group/odoo/addons/hr_employee_private_information_admin_group b/setup/hr_employee_private_information_admin_group/odoo/addons/hr_employee_private_information_admin_group new file mode 120000 index 00000000..6c07717b --- /dev/null +++ b/setup/hr_employee_private_information_admin_group/odoo/addons/hr_employee_private_information_admin_group @@ -0,0 +1 @@ +../../../../hr_employee_private_information_admin_group \ No newline at end of file diff --git a/setup/hr_employee_private_information_admin_group/setup.py b/setup/hr_employee_private_information_admin_group/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/hr_employee_private_information_admin_group/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)