Search 1.9 billion lines of Odoo code on GitHub

hr_holidays_compute_days

Author: iDT LABS, Tecnativa, Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0
Repository: 001101/hr
Dependencies: hr_holidays, and hr_public_holidays
Languages: HTML (383, 22.8%), PO File (706, 42.0%), Python (424, 25.2%), XML (67, 4.0%), and reStructuredText (100, 6.0%)
Other branches: 11.0, 8.0, and 9.0
Other repositories: AAommy/hr, AMhadhbi/hr, AaronHForgeFlow/hr, AbdelghaniDr/hr, Abdullah-Alghoul/hr, AlicePhamFI/hr, BIZ4Africa/hr, Bewlony/hr, CGenie/hr, Callino/hr, Carlos672/hr, Chandresh-SerpentCS/hr, Change2improve/hr, ChavdaRiddhi/hr, ClearCorp/oca-hr, Colorlessgold/hr, CompassionCH/hr, Confidere/hr, Crux-un/hr, DESCAMPS-Bernard/hr, Darknroses/hr, Dhrupesh/hr, Digital5-Odoo/hr, Dobtor-OCA/hr, Domatix/hr, DucTruongKomit/hr, EBII/hr, EFJIT/hr, ERPLibre/hr, Emadbox/hr, Escodoo/hr, FeraryDong/hr, Fitranugraha/hr, ForgeFlow/hr, Gabinete-Digital/hr, Gofekra/hr, GrupoAlvamex/hr, Guobower/hr, HarshalBhoir/hr, HashBangCoop/hr, Ingeos/hr, JETSHUB/hr, JagdishPanchalSCS/hr, Jayde29/hr, JazziMc/hr, Juergv-zhinst/hr, KonosCL/hr, LaMachinerieDigitale/odoo_rh_oca, LeaMartinek/hr, Libardo1/hr, MAbdelbaset/hr, MYRCONSULTING/hr-1, Mahmoud-Alaa-Eldeen/hr, MallorcaSoft/hr, MarkingSC/hr, Martronic-SA/hr, MathBenTech/hr, MeetKD/hr, Mefistous/hr, MindAndGo/hr, Murtaza-Mithaiwala/hr, NachoAlesLopez/hr, Najjarfatii/hr, NeatNerdPrime/hr, NextERP-Romania/hr, Nikul-Chaudhary/hr, Numigi/odoo-hr, OCA-MUK/hr, OCA/hr, ORETEK/hr, Odoo-Italia-Associazione/hr, PNLUG/hr, Peerapong-Supasompob/hr, PrenorSistemas/hr, QubiQ/hr, RealSolutionsLux/hr, RetinaInc/hr, Saharaifs/hr, Sandy4321/hr-1, SanteLibre/hr, SerpentConsultingServices/hr, Seth-Root/hr, SeuMarco/hr, Solofo78/hr, StephanRozendaal/hr, Studio73/hr, Supattra6548/hr, Swapnesh-SerpentCS/hr, TechnovicInfotech/hr, Tecnativa/hr, TimvM/hr, Trivedi-Vacha-SerpentCS/hr, Vauxoo/hr, VisiionSolucionesTecnologicas/hr, VitalPet/hr, Vizucom/hr, Wizr/hr, Yaroslab/hr, YogeshMahera-SerpentCS/hr, abdulhalim-cu/hr, abstract-open-solutions/hr, acsone/hr, adhoc-dev/hr-1, adolfoeliazat/hr, agenterp/hr, agenterpgmbh/hr, akretion/hr, alangwansui/hr, alecvinent/hr, alessavindell/hr, algiopensource/hr, alsalqan/hr, amarildogolloshi/hr, amendoncabh/hr, anandkansagra/hr, andhit-r/hr, andreinl/hr, anhvu-sg/hr, apachesep/hr, apetbiz/hr, area-scm/hr, arsof1/hr, aryajimbaran/hr, aungthumin/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, danielemartini/hr, dcoopennet/hr, delfixtecnosoluciones/hr, diagramsoftware/hr, diggy128/hr, digideskio/hr-1, digisertek/hr, dionmartin/hr, djangkrix/hr, djimenezm/hr, dmdavidmichael/hr, dreispt/hr, drohnet/hr, druidoo-dev/hr, ecosoft-odoo/hr, eil00l/hr, elego/oca-hr, elif-demir/hr, elrodo1/hr, elwan/hr, emagdalenaC2i/hr, emdeechege/hr, enmasys/hr, eric-lemesre/hr, eslAmer/hr, eslammohamed13/hr, espo-tony/hr, etobella/hr, exosoftware/oca-hr, fanzalika/hr, farinoire/hr, feketemihai/hr, fjperezgarrido/hr, fmdl/hr, gab-net/hr, gabrielo77/hr, galtys/hr, gastonfeng/hr, gfcapalbo/hr, gonxi/hr, gorozcoh/hr, grethellgarcia/hr, grindtildeath/hr, gurneyalex/hr, gustavovalverde/hr, haroldtamo/hr, haular/hr, hbrunn/hr, hendrixcosta/hr, hieulucky111/hr, hobbycodersince1990/hr, i-vyshnevska/hr, iRichGit/hr, ideaspositivas-group/hr, iledarn/hr, imedC/hr, ingadhoc/hr-1, initOS/hr, intero-chz/hr, invitu/hr, ip-candres/hr, it-projects-llc/hr, iyangming/hr, jaa-odoo/hr, jacky82669513/hr, janverb/hr, jawkhan/hr, jcdrubay/hr, jlaloux/hr, joelcabral/hr, jonisunz/hr, jsnjfz/hr, jsrhtc/hr, juhk/hr, julianram/hr, jutamas290385/hr, kenvac/hr, kikonany/hr, kittiu/hr, kitworks-systems/hr, kongrattapong/hr, kryskool/hr, kujuwew/hr, kullykiki/hr, labaggio/hr, landoo-es/hr, leangjia/hr, leemannd/hr, levkar/hr, lideritjnma/hr, lincersolucoes/oca-hr, linkitspa/hr, luistorresm/hr, lyphuclong/hr, mFlayyan/hr, maherjaballi/hr, makeplerc/hr, marcelofrare/hr, mauraco-group/hr, maxellini/hr, mazhro/hr, mefiskafka/hr-1, meigallodixital/hr, metalsartigan/hr, miguelguzmanr/hr, mikevhe18/hr, minhyk/hr, mondoraemon/hr, monksoftware/hr, morrismusumi/hr, mpanarin/hr, mrizqiariadi/hr, mudeizi/hr, muiserpi/hr, muratoguz/hr, mymage/hr, myonnet/oca-hr, nabima/hr, napr/hr, netfarm/hr, nikul-serpentcs/hr, niulinlnc/hr, niyid/hr, novawish/hr, nuobit/hr, odooconcept/hr, odoocr/hr, ogemalmayan/hr, oihane/hr, one2pret/hr, oneshiro/hr, onesteinbv/hr, onurugur/hr, open-net-sarl/hr, open-synergy/hr, osi-scampbell/hr, osiberp/hr, p-tombez/hr, patrickrwilson/hr, pavelpy/hr, pawanmisra/hr, pegonzalezspesol/hr, petypi/hr, pieter-lazzaro/hr, popcomputadores-desenv/hr, prisehub/hr, ps-tubtim/hr, pscloud/hr, pypykim/hr, pythoner-3k/hr, qprintcloud/hr, quentinDupont/hr, randall-vx/hr, redblow/hr, relatedlove/hr-1, ricardus34/hr, rjpathan/hr, rlfss/hr-1, rokealva83/hr, royalline1/hr, ruveydayasak/hr, sagar-developer-92/hr, saltonmassally/hr, sambarros/hr, sanube/hr, savoirfairelinux/hr, sendalpegat/hr, serpentcs-dev1/hr, sewisoft/hr, sharifulrocky/hr, sherpya/hr, simahawk/hr, soeethiha/hr, sopheak1/hr, southasia/hr, steingabelgaard/hr, subteno-it/hr, sunflowerit/hr, suniagajose/hr, sysdiary/hr, takinobori/oca-hr, tanza9/hr, tariqsust/hr, tasmail/hr, techrifiv/hr, tegin/hr, teklay/hr, thapanat/hr, thinkasoft-dev/hr, thinkopensolutions/oca-hr, tonyjona/hr, trobz/oca-hr, tschanzt/hr, uktc87504/hr, unitek-solusi/OCA-hr, ursais/hr, uusama/hr, varunxyz/hr, vdedyukhin/hr, veetoki/hr, veroc/hr, versada/hr, vjd8866/hr, vmelnych/hr, vrenaville/hr, vvrossem/hr, wademor/hr, wahello/hr, watcharaporn-git/hr, wattanadev/hr, wfrisson/hr, whileom/hr, wjshan/hr, x0rzkov/odoo-hr, xabispacebiker/hr, xpansa/hr, xpertiz/hr, yaoxingqi/hr, yelizariev/hr, yostashiro/hr, yucer/hr, yweng8111/hr, and zaidkilani/hr

<h1 class="title">Employee Compute Leave Days</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/tree/10.0/hr_holidays_compute_days"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/hr-10-0/hr-10-0-hr_holidays_compute_days"><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/116/10.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>Computes the actual days for which employee will be on leave taking into account:</p> <ul class="simple"> <li>Other leaves in the same interval.</li> <li>Rest days (if configured in that way).</li> <li>Public holidays (if configured in that way).</li> </ul> <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="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <ol class="arabic"> <li><p class="first">Go to <em>Leaves &gt; Configuration</em></p> </li> <li><p class="first">For each leave type, you can mark:</p> <ul class="simple"> <li><strong>Exclude Rest Days</strong>: If you want to remove for the total number of days those which are not workable.</li> <li><strong>Exclude Public Holidays</strong>: For substracting of the total number of days those which are public holidays that are global, for your country or for your state.</li> <li><strong>Compute Full Days</strong>: It will compute days in the interval as full, independently from the starting/ending time.</li> </ul> <p>See <cite>hr_public_holidays</cite> module README for more information on how to configure these public holidays.</p> </li> <li><p class="first">For being able to manually change number of days, you have to be <em>Leave / Manager</em>. If not, the field will be read only.</p> </li> </ol> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <ol class="arabic simple"> <li>Go to <em>Leaves &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>On this form, you have 2 new checks for selecting full days instead of days with time. If you deselect one of these checks, you will be able to select also the starting/ending time of the leave.</li> <li>Select the proper &quot;Leave Type&quot;.</li> <li>The number of days will be computed and shown according options on leave type. If no leave type yet specified, then default configuration is to exclude both rest days and public holidays.</li> </ol> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/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/issues/new?body=module:%20hr_holidays_compute_days%0Aversion:%2010.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="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>iDT LABS</li> <li>Tecnativa</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Salton Massally &lt;<a class="reference external" href="mailto:smassally&#64;idtlabs.sl">smassally&#64;idtlabs.sl</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>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><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul> <li>Pedro M. Baeza</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">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/tree/10.0/hr_holidays_compute_days">OCA/hr</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>