From 5aecbede94d59f4b4c3583829dca33a9831045a1 Mon Sep 17 00:00:00 2001 From: Alfredo Date: Mon, 28 Oct 2024 08:06:30 +0100 Subject: [PATCH] [16.0][ADD] hr_leave_show_attachment: In the absence form, display the "Supporting document" field, regardless of the absence status. --- hr_leave_show_attachment/README.rst | 30 +++++++++++++++++++ hr_leave_show_attachment/__init__.py | 0 hr_leave_show_attachment/__manifest__.py | 13 ++++++++ hr_leave_show_attachment/i18n/ca_ES.po | 15 ++++++++++ hr_leave_show_attachment/i18n/en_GB.po | 15 ++++++++++ hr_leave_show_attachment/i18n/es.po | 15 ++++++++++ hr_leave_show_attachment/i18n/fr.po | 15 ++++++++++ .../i18n/hr_leave_show_attachment.pot | 15 ++++++++++ .../views/hr_leave_views.xml | 24 +++++++++++++++ .../odoo/addons/hr_leave_show_attachment | 1 + setup/hr_leave_show_attachment/setup.py | 6 ++++ 11 files changed, 149 insertions(+) create mode 100644 hr_leave_show_attachment/README.rst create mode 100644 hr_leave_show_attachment/__init__.py create mode 100644 hr_leave_show_attachment/__manifest__.py create mode 100644 hr_leave_show_attachment/i18n/ca_ES.po create mode 100644 hr_leave_show_attachment/i18n/en_GB.po create mode 100644 hr_leave_show_attachment/i18n/es.po create mode 100644 hr_leave_show_attachment/i18n/fr.po create mode 100644 hr_leave_show_attachment/i18n/hr_leave_show_attachment.pot create mode 100644 hr_leave_show_attachment/views/hr_leave_views.xml create mode 120000 setup/hr_leave_show_attachment/odoo/addons/hr_leave_show_attachment create mode 100644 setup/hr_leave_show_attachment/setup.py diff --git a/hr_leave_show_attachment/README.rst b/hr_leave_show_attachment/README.rst new file mode 100644 index 00000000..5a2ae10c --- /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 00000000..e69de29b diff --git a/hr_leave_show_attachment/__manifest__.py b/hr_leave_show_attachment/__manifest__.py new file mode 100644 index 00000000..a06dfd18 --- /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 00000000..7b15655c --- /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 00000000..7b15655c --- /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 00000000..9f2a86a0 --- /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 00000000..7b15655c --- /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 00000000..3b0b8bde --- /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 00000000..f8079b2e --- /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 00000000..41e91eb4 --- /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 00000000..28c57bb6 --- /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, +)