Search 1.9 billion lines of Odoo code on GitHub

hr_holidays_public

Author: Michael Telahun Makonnen, Tecnativa, Fekete Mihai (Forest and Biomass Services Romania), Druidoo, Odoo Community Association (OCA),
License: AGPL-3
Branch: 15.0
Repository: Gabinete-Digital/hr-holidays
Dependencies: hr_holidays, and resource
Languages: HTML (414, 10.8%), PO File (2204, 57.8%), Python (820, 21.5%), SVG (77, 2.0%), XML (154, 4.0%), and reStructuredText (147, 3.9%)
Other branches: 13.0, 14.0, 14.0-old, and 16.0
Other repositories: 001101/hr, AAommy/hr, AlicePhamFI/hr, AntonioOERP/hr-holidays, BBSOdoo/odoo_modules, BIZ4Africa/hr, Bewlony/hr, CGenie/hr, Callino/hr, Carlos672/hr, Chandresh-SerpentCS/hr, Change2improve/event, Change2improve/hr, ChavdaRiddhi/hr, Colorlessgold/hr, DESCAMPS-Bernard/hr, Darknroses/hr, Dhrupesh/hr, Digital5-Odoo/hr, Dobtor-OCA/hr, DucTruongKomit/hr, EFJIT/hr, ERPLibre/hr, Emadbox/hr, Escodoo/hr, FeraryDong/hr, Fitranugraha/hr, ForgeFlow/hr, ForgeFlow/hr-holidays, Gabinete-Digital/hr, GrupoAlvamex/hr, Guobower/hr, HarshalBhoir/hr, HashBangCoop/hr, Ingeos/hr, JagdishPanchalSCS/hr, Jayde29/hr, Juergv-zhinst/hr, LaMachinerieDigitale/odoo_rh_oca, LeaMartinek/hr, MYRCONSULTING/hr-1, Mahmoud-Alaa-Eldeen/hr, MalekShabab/hr-holidays, MallorcaSoft/hr, MarkingSC/hr, MathBenTech/hr, Mefistous/hr, MindAndGo/hr, Murtaza-Mithaiwala/hr, NachoAlesLopez/hr, NeatNerdPrime/hr, NextERP-Romania/hr, NextERP-Romania/hr-holidays, Nikul-Chaudhary/hr, OCA-MUK/hr, OCA/hr, OCA/hr-holidays, PNLUG/hr, Peerapong-Supasompob/hr, QubiQ/hr, RL-OtherApps/odoo_modules, RealSolutionsLux/hr, SanteLibre/hr, SerpentConsultingServices/hr, SeuMarco/hr-holidays, Solofo78/hr, Studio73/hr, Supattra6548/hr, Swapnesh-SerpentCS/hr, TechnovicInfotech/hr, Tecnativa/hr, Tecnativa/hr-holidays, Trivedi-Vacha-SerpentCS/hr, Vauxoo/hr, VisiionSolucionesTecnologicas/hr, Yaroslab/hr, YogeshMahera-SerpentCS/hr, abdulhalim-cu/hr, acsone/hr, agenterp/hr, agenterpgmbh/hr, alessavindell/hr, alsalqan/hr, anandkansagra/hr, andreinl/hr, anhvu-sg/hr, area-scm/hr, arsof1/hr, aurestic/hr, beemoza/hr, bimajatiwijaya/hr, bitshembertiregui/hr, bodi000/hr, brain-tec/hr, brainbeanapps/hr, brian10048/hr, burhan-vakharia/hr, busmanapps/hr, camptocamp/hr, captivea-rdi/hr, code4funvn/hr, codentsoftware/hr, coopaname/hr, coopiteasy/hr, dainiervg1988/hr, damdam-s/hr, danhvophuong/hr, delfixtecnosoluciones/hr, diagramsoftware/hr, dionmartin/hr, djimenezm/hr, dmdavidmichael/hr, druidoo-dev/hr, druidoo-dev/hr-holidays, ecosoft-odoo/hr, ecosoft-odoo/hr-holidays, elego/oca-hr, elif-demir/hr, elrodo1/hr, emagdalenaC2i/hr, emdeechege/hr, enmasys/hr, eslAmer/hr, eslammohamed13/hr, eslammohamed13/odoo_modules, etobella/hr, exosoftware/oca-hr, farinoire/hr, feketemihai/hr, fjperezgarrido/hr, gab-net/hr, gastonfeng/hr, grindtildeath/hr, gurneyalex/hr, gustavovalverde/hr, haular/hr, hendrixcosta/hr, hieulucky111/hr-holidays, i-vyshnevska/hr, ideaspositivas-group/hr, initOS/hr, intuit07/odoo_modules, invitu/hr, ip-candres/hr, iyangming/hr, jaa-odoo/hr, jacky82669513/hr, jacky82669513/hr-holidays, janverb/hr, jonisunz/hr, jsrhtc/hr, juhk/hr, julianram/hr, jutamas290385/hr, kittiu/hr, kitworks-systems/hr, kongrattapong/hr, kujuwew/hr, kullykiki/hr, labaggio/hr, landoo-es/hr, levkar/hr, lideritjnma/hr, lideritjnma/hr-holidays, lincersolucoes/oca-hr, linkitspa/hr, luistorresm/hr, maherjaballi/hr, makeplerc/hr, marcelofrare/hr, marcok/odoo_modules, mauraco-group/hr, maxellini/hr, mazhro/hr, mefiskafka/hr-1, meigallodixital/hr, miguelguzmanr/hr, mondoraemon/hr, mrizqiariadi/hr, muiserpi/hr, mymage/hr, myonnet/oca-hr, nabima/hr, napr/hr, netfarm/hr, nikul-serpentcs/hr, niulinlnc/hr, nuobit/hr, odooconcept/hr, odoocr/hr, ogemalmayan/hr, one2pret/hr, oneshiro/hr, onesteinbv/hr, onesteinbv/hr-holidays, onurugur/hr, osi-scampbell/hr, ovnicraft/hr, p-tombez/hr, patrickrwilson/hr, pavelpy/hr, pegonzalezspesol/hr, petypi/hr, petypi/hr-holidays, popcomputadores-desenv/hr, ps-tubtim/hr, pscloud/hr, pythoner-3k/hr, qprintcloud/hr, quentinDupont/hr, randall-vx/hr, redblow/hr, relatedlove/hr-1, ricardus34/hr, rjpathan/hr, rlfss/hr-1, royalline1/hr, ruveydayasak/hr, salusutis/hr-holidays, sanube/hr, sanube/hr-holidays, sendalpegat/hr, sewisoft/hr, sherpya/hr, soeethiha/hr, sopheak1/hr, soulman72/odoo_modules, steingabelgaard/hr, suniagajose/hr, sysdiary/hr, takinobori/oca-hr, tariqsust/hr, tasmail/hr, tegin/hr, thapanat/hr, thinkasoft-dev/hr, tschanzt/hr, uktc87504/hr, unitek-solusi/OCA-hr, ursais/hr, vdedyukhin/hr, veetoki/hr, versada/hr, vjd8866/hr, vmelnych/hr, vrenaville/hr, vvrossem/hr, wademor/hr, wahello/hr, watcharaporn-git/hr, watcharaporn-git/hr-holidays, wattanadev/hr, whileom/hr, wjshan/hr, x0rzkov/odoo-hr, xpertiz/hr, yucer/hr, and zaidkilani/hr

<h1 class="title">HR Holidays Public</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/hr-holidays/tree/15.0/hr_holidays_public"><img alt="OCA/hr-holidays" src="https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/hr-holidays-15-0/hr-holidays-15-0-hr_holidays_public"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/290/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module handles public holidays.</p> <p>The calculation of each leave can exclude rest public holiday, depending on the leave type configuration.</p> <p>In HR holiday app, public holiday will be displayed as unusual days (grey like weekends).</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id2">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id5">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id6">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>Go to <em>Time Off -&gt; Configuration -&gt; Time Off Types</em> and open a Leave Type</p> <ul class="simple"> <li>Check &quot;Exclude Public Holidays&quot; to exclude public holidays.</li> </ul> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>For adding public holidays:</p> <ol class="arabic simple"> <li>Go to the menu <em>Leaves &gt; Public Holidays &gt; Public Holidays</em>.</li> <li>Create your public holidays.</li> </ol> <p>For using public holidays on leaves:</p> <ol class="arabic simple"> <li>Go to <em>Time Off &gt; Dashboard</em>.</li> <li>Select dragging on the calendar the days you want to be on leave, or go to the form view for selecting start and end dates.</li> <li>Select the proper &quot;Leave Type&quot; that has &quot;Exclude Public Holidays&quot; checked.</li> <li>If no leave type is yet specified, then default configuration is to exclude public holidays.</li> <li>The number of days will be computed excluding public holidays that match the selected employee, including global, country and state holidays.</li> <li>If no employee is yet selected, only global holidays will be taken into account.</li> </ol> <p>In calendar views in HR holiday app public will be display (likes other unusual days) according the current user employee country/state. If not set the there is a fallback to the current company country/state to filter public holidays.</p> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h2> <p>In Odoo 12.0, <cite>_leave_intervals()</cite> returns <cite>Intervals</cite> which is a list of tuples (start_timestamp, end_timestamp, <cite>resource.calendar.leaves</cite> record). Since this module does not operate with <cite>resource.calendar.leaves</cite>, it's setting third component of a tuple to a <cite>hr.holidays.public.line</cite> record. This may or may not be a problem, yet since this component is also being set to <cite>resource.calendar.attendance</cite> records in <cite>_attendance_intervals()</cite>, seems it should be ok.</p> <p>There are no restrictions to block users from modifying or removing calendar events linked to public holidays. There's a suggestion to overload <cite>write</cite> and <cite>unlink</cite> methods of <cite>calendar.event</cite>, but it might have other impacts like users not being able to edit event tags, or even custom fields.</p> <p>Regional public holidays are shown in the public calendar. The regions will be noted in the description of the event, but it'll be shown to all users. It'd be good to have it show only for users in these regions.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr-holidays/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/hr-holidays/issues/new?body=module:%20hr_holidays_public%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id5">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id6">Authors</a></h3> <ul class="simple"> <li>Michael Telahun Makonnen</li> <li>Tecnativa</li> <li>Fekete Mihai (Forest and Biomass Services Romania)</li> <li>Druidoo</li> <li></li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id7">Contributors</a></h3> <ul class="simple"> <li>Michael Telahun Makonnen &lt;<a class="reference external" href="mailto:mmakonnen&#64;gmail.com">mmakonnen&#64;gmail.com</a>&gt;</li> <li>Fekete Mihai &lt;<a class="reference external" href="mailto:feketemihai&#64;gmail.com">feketemihai&#64;gmail.com</a>&gt;</li> <li>Nikolina Todorova &lt;<a class="reference external" href="mailto:nikolina.todorova&#64;initos.com">nikolina.todorova&#64;initos.com</a>&gt;</li> <li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li> <li>Salton Massally (iDT Labs) &lt;<a class="reference external" href="mailto:smassally&#64;idtlabs.sl">smassally&#64;idtlabs.sl</a>&gt;</li> <li>Ivan Yelizariev &lt;<a class="reference external" href="mailto:yelizariev&#64;it-projects.info">yelizariev&#64;it-projects.info</a>&gt;</li> <li>Bassirou Ndaw &lt;<a class="reference external" href="mailto:b.ndaw&#64;ergobit.org">b.ndaw&#64;ergobit.org</a>&gt;</li> <li>Dhara Solanki &lt;<a class="reference external" href="mailto:dhara.solanki&#64;initos.com">dhara.solanki&#64;initos.com</a>&gt;</li> <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul> <li>Pedro M. Baeza</li> </ul> </li> <li><a class="reference external" href="https://corporatehub.eu/">CorporateHub</a><ul> <li>Alexey Pelykh &lt;<a class="reference external" href="mailto:alexey.pelykh&#64;corphub.eu">alexey.pelykh&#64;corphub.eu</a>&gt;</li> </ul> </li> <li><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a>:<ul> <li>Damien Crier &lt;<a class="reference external" href="mailto:damien.crier&#64;camptocamp.com">damien.crier&#64;camptocamp.com</a>&gt;</li> </ul> </li> <li><a class="reference external" href="https://www.druidoo.io">Druidoo</a>:<ul> <li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;gmail.com">ivan.todorovich&#64;gmail.com</a>&gt;</li> </ul> </li> <li><a class="reference external" href="https://www.pesol.es">Pesol</a>:<ul> <li>Pedro Evaristo Gonzalez Sanchez &lt;<a class="reference external" href="mailto:pedro.gonzalez&#64;pesol.es">pedro.gonzalez&#64;pesol.es</a>&gt;</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id8">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr-holidays/tree/15.0/hr_holidays_public">OCA/hr-holidays</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>