diff --git a/hr_leave_show_attachment/README.rst b/hr_leave_show_attachment/README.rst new file mode 100644 index 0000000..5a2ae10 --- /dev/null +++ b/hr_leave_show_attachment/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 leave show attachment +======================== + +* In the absence form, display the "Supporting document" field, regardless of + the absence status. + + +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_leave_show_attachment/__init__.py b/hr_leave_show_attachment/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hr_leave_show_attachment/__manifest__.py b/hr_leave_show_attachment/__manifest__.py new file mode 100644 index 0000000..a06dfd1 --- /dev/null +++ b/hr_leave_show_attachment/__manifest__.py @@ -0,0 +1,13 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Hr Leave Show Attachment", + "version": "16.0.1.0.0", + "category": "Human Resources/Time Off", + "license": "AGPL-3", + "author": "AvanzOSC", + "website": "https://github.com/avanzosc/hr-addons", + "depends": ["hr_holidays"], + "data": ["views/hr_leave_views.xml"], + "installable": True, +} diff --git a/hr_leave_show_attachment/i18n/ca_ES.po b/hr_leave_show_attachment/i18n/ca_ES.po new file mode 100644 index 0000000..7b15655 --- /dev/null +++ b/hr_leave_show_attachment/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-28 07:03+0000\n" +"PO-Revision-Date: 2024-10-28 07:03+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_leave_show_attachment/i18n/en_GB.po b/hr_leave_show_attachment/i18n/en_GB.po new file mode 100644 index 0000000..7b15655 --- /dev/null +++ b/hr_leave_show_attachment/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-28 07:03+0000\n" +"PO-Revision-Date: 2024-10-28 07:03+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_leave_show_attachment/i18n/es.po b/hr_leave_show_attachment/i18n/es.po new file mode 100644 index 0000000..9f2a86a --- /dev/null +++ b/hr_leave_show_attachment/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-28 07:04+0000\n" +"PO-Revision-Date: 2024-10-28 07:04+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_leave_show_attachment/i18n/fr.po b/hr_leave_show_attachment/i18n/fr.po new file mode 100644 index 0000000..7b15655 --- /dev/null +++ b/hr_leave_show_attachment/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-28 07:03+0000\n" +"PO-Revision-Date: 2024-10-28 07:03+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_leave_show_attachment/i18n/hr_leave_show_attachment.pot b/hr_leave_show_attachment/i18n/hr_leave_show_attachment.pot new file mode 100644 index 0000000..3b0b8bd --- /dev/null +++ b/hr_leave_show_attachment/i18n/hr_leave_show_attachment.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-28 07:02+0000\n" +"PO-Revision-Date: 2024-10-28 07:02+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_leave_show_attachment/views/hr_leave_views.xml b/hr_leave_show_attachment/views/hr_leave_views.xml new file mode 100644 index 0000000..f8079b2 --- /dev/null +++ b/hr_leave_show_attachment/views/hr_leave_views.xml @@ -0,0 +1,24 @@ + + + + + hr.leave + + + + + {'invisible': [('leave_type_support_document', '=', False)]} + + + {'invisible': [('leave_type_support_document', '=', False)]} + + + + diff --git a/setup/hr_leave_show_attachment/odoo/addons/hr_leave_show_attachment b/setup/hr_leave_show_attachment/odoo/addons/hr_leave_show_attachment new file mode 120000 index 0000000..41e91eb --- /dev/null +++ b/setup/hr_leave_show_attachment/odoo/addons/hr_leave_show_attachment @@ -0,0 +1 @@ +../../../../hr_leave_show_attachment \ No newline at end of file diff --git a/setup/hr_leave_show_attachment/setup.py b/setup/hr_leave_show_attachment/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/hr_leave_show_attachment/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)