Search 1.9 billion lines of Odoo code on GitHub

resource_hook

Author: Creu Blanca, Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: Change2improve/hr
Dependencies: resource
Languages: HTML (354, 70.8%), Python (95, 19.0%), and reStructuredText (51, 10.2%)
Other branches: 11.0, and 13.0
Other repositories: 001101/hr, AAommy/hr, AlicePhamFI/hr, BIZ4Africa/hr, Bewlony/hr, Callino/hr, Carlos672/hr, Darknroses/hr, Digital5-Odoo/hr, Dobtor-OCA/hr, EFJIT/hr, ERPLibre/hr, Emadbox/hr, Escodoo/hr, Fitranugraha/hr, ForgeFlow/hr, Gabinete-Digital/hr, HarshalBhoir/hr, HashBangCoop/hr, Ingeos/hr, Jayde29/hr, LeaMartinek/hr, MallorcaSoft/hr, MathBenTech/hr, MindAndGo/hr, Murtaza-Mithaiwala/hr, NeatNerdPrime/hr, NextERP-Romania/hr, OCA-MUK/hr, OCA/hr, PNLUG/hr, Peerapong-Supasompob/hr, QubiQ/hr, RealSolutionsLux/hr, SanteLibre/hr, SerpentConsultingServices/hr, Studio73/hr, Supattra6548/hr, TechnovicInfotech/hr, Tecnativa/hr, Trivedi-Vacha-SerpentCS/hr, Vauxoo/hr, abdulhalim-cu/hr, acsone/hr, agenterpgmbh/hr, andreinl/hr, anhvu-sg/hr, area-scm/hr, arsof1/hr, aurestic/hr, beemoza/hr, bitshembertiregui/hr, bodi000/hr, brain-tec/hr, brainbeanapps/hr, brian10048/hr, busmanapps/hr, camptocamp/hr, captivea-rdi/hr, code4funvn/hr, codentsoftware/hr, coopiteasy/hr, dainiervg1988/hr, dionmartin/hr, ecosoft-odoo/hr, elego/oca-hr, enmasys/hr, eslammohamed13/hr, exosoftware/oca-hr, farinoire/hr, gab-net/hr, gurneyalex/hr, haular/hr, hendrixcosta/hr, ideaspositivas-group/hr, invitu/hr, ip-candres/hr, jacky82669513/hr, janverb/hr, jonisunz/hr, jsrhtc/hr, jutamas290385/hr, kittiu/hr, kitworks-systems/hr, kongrattapong/hr, kullykiki/hr, labaggio/hr, landoo-es/hr, levkar/hr, lideritjnma/hr, maherjaballi/hr, marcelofrare/hr, mauraco-group/hr, maxellini/hr, mazhro/hr, mefiskafka/hr-1, miguelguzmanr/hr, mondoraemon/hr, mrizqiariadi/hr, mymage/hr, myonnet/oca-hr, napr/hr, netfarm/hr, nuobit/hr, odoocr/hr, ogemalmayan/hr, oneshiro/hr, onesteinbv/hr, onurugur/hr, ovnicraft/hr, patrickrwilson/hr, pegonzalezspesol/hr, petypi/hr, pythoner-3k/hr, qprintcloud/hr, quentinDupont/hr, randall-vx/hr, relatedlove/hr-1, ricardus34/hr, rlfss/hr-1, royalline1/hr, ruveydayasak/hr, sanube/hr, sendalpegat/hr, sewisoft/hr, sherpya/hr, sopheak1/hr, steingabelgaard/hr, sunflowerit/hr, sysdiary/hr, takinobori/oca-hr, tegin/hr, thapanat/hr, thinkasoft-dev/hr, uktc87504/hr, unitek-solusi/OCA-hr, ursais/hr, veetoki/hr, versada/hr, vmelnych/hr, vrenaville/hr, vvrossem/hr, wademor/hr, wahello/hr, watcharaporn-git/hr, wattanadev/hr, whileom/hr, x0rzkov/odoo-hr, xpertiz/hr, and zaidkilani/hr

<h1 class="title">Resource Hook</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/12.0/resource_hook"><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-12-0/hr-12-0-resource_hook"><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/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module includes additional hooks to the standard resource methods, so that it is possible to alter the behaviour of methods, where inheritance is not an option.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#changelog" id="id2">Changelog</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="changelog"></a> <h2 class="with-subtitle"><a class="toc-backref" href="#id2">Changelog</a></h2> <h2 class="section-subtitle" id="id1"><span class="section-subtitle">11.0.1.0.0 (2019-05-28)</span></h2> <ul class="simple"> <li>Introduce hook in method '_get_work_days_data' of ResourceMixing class in order to allow changes in the logic to compute working hours within an interval. A new method '_get_work_hours' is now provided for this purpose. The method can be inherit to alter the standard behaviour.</li> </ul> <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:%20resource_hook%0Aversion:%2012.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>Creu Blanca</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li><dl class="first docutils"> <dt>Creu Blanca</dt> <dd><ul class="first last"> <li>Jaime Arroyo &lt;<a class="reference external" href="mailto:jaime.arroyo&#64;creublanca.es">jaime.arroyo&#64;creublanca.es</a>&gt;</li> </ul> </dd> </dl> </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/12.0/resource_hook">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>