diff --git a/hr_hide_info/README.rst b/hr_hide_info/README.rst new file mode 100644 index 0000000..d59cdc6 --- /dev/null +++ b/hr_hide_info/README.rst @@ -0,0 +1,28 @@ +.. 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 hide info +============ + +* Hide information for some users. + +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 +------------ + +* Berezi Amubieta +* Alfredo de la Fuente diff --git a/hr_hide_info/__init__.py b/hr_hide_info/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/hr_hide_info/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_hide_info/__manifest__.py b/hr_hide_info/__manifest__.py new file mode 100644 index 0000000..e50b4db --- /dev/null +++ b/hr_hide_info/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2021 Berezi - Iker - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Hr hide info", + 'version': '14.0.1.0.0', + "author": "Avanzosc", + "category": "Sales/CRM", + "depends": [ + "hr" + ], + "data": [ + "views/hr_employee_views.xml" + ], + "license": "AGPL-3", + 'installable': True, +} diff --git a/hr_hide_info/i18n/es.po b/hr_hide_info/i18n/es.po new file mode 100644 index 0000000..8fdcab1 --- /dev/null +++ b/hr_hide_info/i18n/es.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_hide_info +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-06-23 08:06+0000\n" +"PO-Revision-Date: 2021-06-23 08:06+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_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: hr_hide_info +#: model:ir.model,name:hr_hide_info.model_hr_employee +msgid "Employee" +msgstr "Empleado" + +#. module: hr_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee__id +msgid "ID" +msgstr "" + +#. module: hr_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: hr_hide_info +#: model:ir.actions.act_window,name:hr_hide_info.open_view_my_file +#: model:ir.ui.menu,name:hr_hide_info.menu_my_hr_employee +msgid "My employee file" +msgstr "Mi ficha de empleado" + +#. module: hr_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee__personal_private_email +msgid "Personal private email" +msgstr "Correo personal privado" diff --git a/hr_hide_info/i18n/hr_hide_info.pot b/hr_hide_info/i18n/hr_hide_info.pot new file mode 100644 index 0000000..ad57361 --- /dev/null +++ b/hr_hide_info/i18n/hr_hide_info.pot @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_hide_info +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-06-23 08:05+0000\n" +"PO-Revision-Date: 2021-06-23 08:05+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_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_hide_info +#: model:ir.model,name:hr_hide_info.model_hr_employee +msgid "Employee" +msgstr "" + +#. module: hr_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee__id +msgid "ID" +msgstr "" + +#. module: hr_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_hide_info +#: model:ir.actions.act_window,name:hr_hide_info.open_view_my_file +#: model:ir.ui.menu,name:hr_hide_info.menu_my_hr_employee +msgid "My employee file" +msgstr "" + +#. module: hr_hide_info +#: model:ir.model.fields,field_description:hr_hide_info.field_hr_employee__personal_private_email +msgid "Personal private email" +msgstr "" diff --git a/hr_hide_info/models/__init__.py b/hr_hide_info/models/__init__.py new file mode 100644 index 0000000..e11a62f --- /dev/null +++ b/hr_hide_info/models/__init__.py @@ -0,0 +1 @@ +from . import hr_employee diff --git a/hr_hide_info/models/hr_employee.py b/hr_hide_info/models/hr_employee.py new file mode 100644 index 0000000..e144cfc --- /dev/null +++ b/hr_hide_info/models/hr_employee.py @@ -0,0 +1,9 @@ +# Copyright 2021 Berezi - Iker - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import models, fields + + +class HrEmployee(models.Model): + _inherit = 'hr.employee' + + personal_private_email = fields.Char(string='Personal private email') diff --git a/hr_hide_info/views/hr_employee_views.xml b/hr_hide_info/views/hr_employee_views.xml new file mode 100644 index 0000000..c664912 --- /dev/null +++ b/hr_hide_info/views/hr_employee_views.xml @@ -0,0 +1,34 @@ + + + + hr.employee + + + + + + + hr.group_hr_manager + + + hr.group_hr_manager + + + + + + My employee file + ir.actions.act_window + tree,form + hr.employee + + [('user_id', '=', uid)] + {} + + + +