-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
27 changed files
with
1,427 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
======================== | ||
HR Attendance Auto Close | ||
======================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:56931643c0fd1e22f3f6ec466df0d4158ee820e4d48434437e20cdaa10e01021 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--attendance-lightgray.png?logo=github | ||
:target: https://github.com/OCA/hr-attendance/tree/17.0/hr_attendance_autoclose | ||
:alt: OCA/hr-attendance | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/hr-attendance-17-0/hr-attendance-17-0-hr_attendance_autoclose | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr-attendance&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module close stale attendances automatically. Without this module, | ||
when an employee forgets to check out at the end on the day and the next | ||
day the employee does not realize of that, then the error is propagated | ||
and all the attendances are wrong. With this module only the attendance | ||
with the issue is wrong, and the manager knows the system closes the | ||
attendance, not the employee | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
1. Go to *Attendances > Configuration > Configuration*. | ||
2. Set the maximum number of hours allowed for an attendance. | ||
3. Go to *Attendances > Manage Attendances > Attendances*. | ||
4. Attendance are automatically closed if they have remained open for | ||
longer than specified in the setting. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-attendance/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/hr-attendance/issues/new?body=module:%20hr_attendance_autoclose%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
- Aaron Henriquez <[email protected]> | ||
|
||
- Kitti U. <[email protected]> | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Víctor Martínez | ||
|
||
- Foram Shah <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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. | ||
|
||
This module is part of the `OCA/hr-attendance <https://github.com/OCA/hr-attendance/tree/17.0/hr_attendance_autoclose>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2018 ForgeFlow, S.L. | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
{ | ||
"name": "HR Attendance Auto Close", | ||
"version": "17.0.1.0.0", | ||
"category": "Human Resources", | ||
"summary": "Close stale Attendances", | ||
"website": "https://github.com/OCA/hr-attendance", | ||
"author": "Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"depends": ["hr_attendance_reason"], | ||
"data": [ | ||
"data/hr_attendance_reason.xml", | ||
"data/hr_attendance.xml", | ||
"data/res_company.xml", | ||
"views/hr_attendance_view.xml", | ||
"views/hr_employee.xml", | ||
"views/res_config_settings_view.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record model="ir.cron" id="check_attendance_cron"> | ||
<field name="name">Check Attendance</field> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">hours</field> | ||
<field name="numbercall">-1</field> | ||
<field | ||
name="nextcall" | ||
eval="(DateTime.now() + timedelta(minutes=60)).strftime('%Y-%m-%d %H:05:00')" | ||
/> | ||
<field name="doall" eval="True" /> | ||
<field name="model_id" ref="hr_attendance.model_hr_attendance" /> | ||
<field name="state">code</field> | ||
<field name="code"> | ||
model.check_for_incomplete_attendances() | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="hr_attendance_reason_check_out" model="hr.attendance.reason"> | ||
<field name="name">System automatic check out due to inactivity</field> | ||
<field name="code">S-CO</field> | ||
<field name="action_type">sign_out</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="base.main_company" model="res.company"> | ||
<field | ||
name="hr_attendance_autoclose_reason" | ||
ref="hr_attendance_reason_check_out" | ||
/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_attendance_autoclose | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 13.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2023-11-02 18:37+0000\n" | ||
"Last-Translator: Ivorra78 <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-" | ||
"specific.\" groups=\"base.group_multi_company\"/>" | ||
msgstr "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-" | ||
"specific.\" groups=\"base.group_multi_company\"/>" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_hr_attendance | ||
msgid "Attendance" | ||
msgstr "Asistencia" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "Attendance Autoclosing" | ||
msgstr "Autocierre de Asistencia" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_company__attendance_maximum_hours_per_day | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_config_settings__attendance_maximum_hours_per_day | ||
msgid "Attendance Maximum Hours Per Day" | ||
msgstr "Horas máximas de asistencia por día" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "" | ||
"Attendance lines longer than this value will\n" | ||
" be automatically closed." | ||
msgstr "" | ||
"Las líneas de asistencia que superen este valor\n" | ||
" se cerrarán automáticamente." | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "Autoclose Reason" | ||
msgstr "Motivo de Cierre Automático" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.actions.server,name:hr_attendance_autoclose.check_attendance_cron_ir_actions_server | ||
#: model:ir.cron,cron_name:hr_attendance_autoclose.check_attendance_cron | ||
msgid "Check Attendance" | ||
msgstr "Comprobar asistencia" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_res_company | ||
msgid "Companies" | ||
msgstr "Compañías" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "Ajustes de Configuración" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_hr_employee__no_autoclose | ||
msgid "Don't Autoclose Attendances" | ||
msgstr "No auto-cerrar asistencias" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_hr_employee | ||
msgid "Employee" | ||
msgstr "Empleado/a" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_company__hr_attendance_autoclose_reason | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_config_settings__hr_attendance_autoclose_reason | ||
msgid "Hr Attendance Autoclose Reason" | ||
msgstr "Razón de Cierre Automático de Asistencia de Recursos Humanos" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "Max Hours Per Day" | ||
msgstr "Horas Máximas por Día" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "" | ||
"This reason will be added to an attendance\n" | ||
" when it's autoclosed." | ||
msgstr "" | ||
"Este motivo se agregará a una asistencia.\n" | ||
" cuando sea cerrada automáticamente." | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_hr_attendance__open_worked_hours | ||
msgid "Worked hours" | ||
msgstr "Horas trabajadas" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_attendance_autoclose | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-" | ||
"specific.\" groups=\"base.group_multi_company\"/>" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_hr_attendance | ||
msgid "Attendance" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "Attendance Autoclosing" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_company__attendance_maximum_hours_per_day | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_config_settings__attendance_maximum_hours_per_day | ||
msgid "Attendance Maximum Hours Per Day" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "" | ||
"Attendance lines longer than this value will\n" | ||
" be automatically closed." | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "Autoclose Reason" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.actions.server,name:hr_attendance_autoclose.check_attendance_cron_ir_actions_server | ||
#: model:ir.cron,cron_name:hr_attendance_autoclose.check_attendance_cron | ||
msgid "Check Attendance" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_hr_employee__no_autoclose | ||
msgid "Don't Autoclose Attendances" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model,name:hr_attendance_autoclose.model_hr_employee | ||
msgid "Employee" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_company__hr_attendance_autoclose_reason | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_res_config_settings__hr_attendance_autoclose_reason | ||
msgid "Hr Attendance Autoclose Reason" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "Max Hours Per Day" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_autoclose.res_config_settings_view_form | ||
msgid "" | ||
"This reason will be added to an attendance\n" | ||
" when it's autoclosed." | ||
msgstr "" | ||
|
||
#. module: hr_attendance_autoclose | ||
#: model:ir.model.fields,field_description:hr_attendance_autoclose.field_hr_attendance__open_worked_hours | ||
msgid "Worked hours" | ||
msgstr "" |
Oops, something went wrong.