Author: |
Pierre Verkest, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
14.0 |
Repository: |
OCA/hr-attendance |
Dependencies: |
hr_attendance,
hr_attendance_autoclose,
hr_attendance_reason,
resource,
and
web |
Languages: |
HTML (428, 17.3%),
JavaScript (375, 15.2%),
PO File (115, 4.7%),
Python (1107, 44.8%),
XML (292, 11.8%),
and
reStructuredText (155, 6.3%) |
Other repositories: |
Hyperthinkk/InstallScript,
pegonzalezspesol/hr-attendance,
and
tegin/hr-attendance |
<h1 class="title">Hr Attendance Overtime</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-attendance/tree/14.0/hr_attendance_overtime"><img alt="OCA/hr-attendance" src="https://img.shields.io/badge/github-OCA%2Fhr--attendance-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/hr-attendance-14-0/hr-attendance-14-0-hr_attendance_overtime"><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/288/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>Mark Attendances as overtime according works week employee configuration
to track times done outside the theoretical work times.</p>
<p>At check-out time the attendance line can be split in order to help manager
with employee presence reviews and compute compensatory hours.</p>
<p>With this module:</p>
<ul>
<li><p class="first">Employee can visualize plan open work times</p>
<img alt="https://raw.githubusercontent.com/OCA/hr-attendance/14.0/hr_attendance_overtime/static/img/my_attendance.png" src="https://raw.githubusercontent.com/OCA/hr-attendance/14.0/hr_attendance_overtime/static/img/my_attendance.png" />
<p>The check-in/check-out button has different colors according
the current state, employee is early, on time, late.</p>
</li>
<li><p class="first">You can configure theoretical check-in/check-out hours ranges on employee works
week.</p>
</li>
<li><p class="first">While employee check-out following rules are applied on the closed attendance line:</p>
<ul class="simple">
<li>Checking rules are:<ul>
<li>check-in before starting ranges will create two attendances:<ul>
<li>The first one will be marked as overtime and stopped at the beginning of the
starting range, an earlier reason will be add.</li>
<li>The second will start at the end of the first one.</li>
</ul>
</li>
<li>check-in in the starting range will open attendance as normal</li>
<li>check-after the starting range will open attendances as normal adding
a late reason</li>
</ul>
</li>
<li>Check out rules<ul>
<li>Check-out before check-out hours range will marked the attendance as leave earlier</li>
<li>Check-out in the given range will close the attendance as normal</li>
<li>Check-out after the range will generate 2 attendance<ul>
<li>a normal one that terminate at the end of the range</li>
<li>an overtime one that start from the end of range to the check-out time
a late reason is added as well</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><p class="first">Auto close rules: We suggest to plan an auto close ir.cron after each
work time attendance basically one between the
morning and afternoon and one at the end of the day.
Previous check-out rules described above will be applied with the
auto-close module reason using the ir cron execution time. If no
theoretical work time found for open hr attendance a fallback to the
auto-close module rules are applied.</p>
</li>
</ul>
<p>This module is used by <cite>hr_attendance_validation</cite> in order to helps
manager review weeks hours and generate compensatoires hours per
employee.</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="#known-issues-roadmap" id="id2">Known issues / Roadmap</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>
<p>This modules depend on different configurations:</p>
<p>To setup ranges hours on employee work time weeks:</p>
<ol class="arabic simple">
<li>Go to <em>Settings > Technical > Resource > Working Times</em>
or from employee form Go to <em>Employees > Employees > in employee form view > working hours</em>.</li>
<li>On the form view you can setup 4 new fields add by this module on each attendance lines</li>
</ol>
<blockquote>
<ul class="simple">
<li><em>check-in from</em>: Check-in before will result an extra overtime line with an earlier check-in reason (<cite>CI-E</cite>)</li>
<li><em>check-in to</em>: Check-in after will add a late check-in reason (<cite>CI-L</cite>)</li>
<li><em>check-out from</em>: Check-out before will add a earlier check-out reason (<cite>CO-E</cite>)</li>
<li><em>check-out to</em>: Check-out after will generate an extra overtime line with a late check-out reason (<cite>CO-L</cite>)</li>
</ul>
</blockquote>
<p>We have chosen to not reuse existing <em>Work from</em> and <em>Work to</em> that are used by other modules like <em>hr_holidays</em>
with compensatoires leaves. To be able to define a bigger range that overlap that time.</p>
<p>You can personalize 4 kinds of reason label that are selected by code which must remains the same and uniq:</p>
<ol class="arabic simple">
<li>Go to <em>Attendances > configuration > Reason</em></li>
<li>personalize name for following code:</li>
</ol>
<blockquote>
<ul class="simple">
<li><cite>CI-E</cite>: check-in earlier (checked-in occurred before <em>check-in from</em>)</li>
<li><cite>CI-L</cite>: check-in late (checked-in occurred after <em>check-in to</em>)</li>
<li><cite>CO-E</cite>: check-out earlier (checked-out occurred before <em>check-out from</em>)</li>
<li><cite>CO-L</cite>: check-out late (checked-out occurred after <em>check-out to</em>)</li>
</ul>
</blockquote>
<a name="known-issues-roadmap"></a>
<h2><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h2>
<ul class="simple">
<li>Display planning in kiosk mode as well</li>
<li>Ensure it works with a two weeks calendar</li>
<li>Considering global time off and hr_holidays</li>
<li>Ensure there is no overlap between work time
lines of the same work time calendar</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-attendance/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-attendance/issues/new?body=module:%20hr_attendance_overtime%0Aversion:%2014.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>Pierre Verkest</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id6">Contributors</a></h3>
<ul class="simple">
<li>Pierre Verkest <<a class="reference external" href="mailto:pierreverkest84@gmail.com">pierreverkest84@gmail.com</a>></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>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/petrus-v"><img alt="petrus-v" src="https://github.com/petrus-v.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr-attendance/tree/14.0/hr_attendance_overtime">OCA/hr-attendance</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>
Dependency Graph