Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] hr_attendance_modification_tracking: Migration to 17.0 #196

Open
wants to merge 33 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5582c83
[ADD] hr_attendance_modify
Mar 14, 2019
68d75d6
[12.0][MIG] hr_attendance_modification_tracking
Saran440 Jun 27, 2019
632846f
[IMP] hr_attendance_modification_tracking: black, isort
Saran440 Feb 6, 2020
ea35b66
[13.0][MIG] hr_attendance_modification_tracking
Saran440 Feb 6, 2020
b32515c
[13.0][IMP]hr_attendance_modification_tracking: ADD 'time changed' al…
ns-landoo Jun 1, 2020
00a9f48
[13.0][IMP] hr_attendance_modification_tracking: add manual column pr…
Jul 8, 2020
3caa992
[FIX] hr_attendance_modification_tracking: read as superuser
Jul 13, 2020
1781640
[MIG] hr_attendance_modification_tracking: Migration to 14.0
ao-landoo May 25, 2021
b06e660
[FIX] hr_attendance_modification_tracking
brian10048 Dec 2, 2021
82dc44b
Added translation using Weblate (French)
petrus-v Dec 20, 2021
b5b3058
Translated using Weblate (French)
petrus-v Dec 20, 2021
cdbcebc
Added translation using Weblate (Italian)
aleuffre Sep 26, 2022
9bf54ba
Translated using Weblate (Italian)
aleuffre Sep 26, 2022
725db5c
[IMP] hr_attendance_modification_tracking: Improve views
etobella Dec 19, 2022
25bd89f
Translated using Weblate (Italian)
mymage Dec 28, 2022
91e4fb7
Translated using Weblate (Italian)
francesco-ooops Dec 30, 2022
39013cf
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
c796990
Translated using Weblate (Italian)
mymage Jan 18, 2023
67d73db
Translated using Weblate (Italian)
aleuffre Jan 23, 2023
b3ea14a
[FIX] hr_attendance_modification_tracking: Set related fields as not …
etobella Feb 16, 2023
9ad5b78
Translated using Weblate (Italian)
francesco-ooops Mar 9, 2023
1aeda7f
[14.0][FIX] hr_attendance_modification_tracking: squash tracking warning
aleuffre Mar 28, 2023
bc24baf
Translated using Weblate (Italian)
mymage Apr 5, 2023
dff0d4f
Translated using Weblate (Italian)
PicchiSeba Apr 6, 2023
e53b2d0
Translated using Weblate (Italian)
mymage May 10, 2023
10e1f9a
Translated using Weblate (Italian)
mymage May 17, 2023
cb8ed5a
[MIG] hr_attendance_modification_tracking: Migration to 16.0
dalonsofl Sep 25, 2023
4b7d7cb
Translated using Weblate (Spanish)
Ivorra78 Feb 29, 2024
78cf787
Translated using Weblate (Italian)
mymage Mar 4, 2024
7104eb7
Translated using Weblate (Italian)
mymage Jun 6, 2024
63802bc
[IMP] hr_attendance_modification_tracking: implement `@model_create_m…
hirenST Oct 11, 2024
fe3e361
[IMP] hr_attendance_modification_tracking: pre-commit auto fixes
HeliconiaSolutions Dec 17, 2024
3b893da
[MIG] hr_attendance_modification_tracking: Migration to 17.0
HeliconiaSolutions Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions hr_attendance_modification_tracking/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
====================================
HR Attendance Modification Tracking.
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:035cfbd2951314e08e735a434f8d20ee906715dc18a4833da2042f2689b1f83a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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_modification_tracking
: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_modification_tracking
: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|

Attendance changes will now be registered in the chatter. This will help
prevent cheating in check-in or check-out time. List and form views also
include this change information.

Use cases:

- Attendances created from kiosk or check-in/check-out screens, are
created as automatic. If their check-in or check-out dates are
modified by any user, attendances are checked as 'Manually changed'.
- Attendances created from form view will apply a 60 seconds tolerance
between entered and real times. If this tolerance is surpassed,
attendances are checked as 'Manually changed'.

Note:

- Attendances already created won't be checked automatically on
installation since it could take a large amount of time. If this is
wanted it will be necessary to do it manually later.

**Table of contents**

.. contents::
:local:

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_modification_tracking%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
=======

Authors
-------

* Creu Blanca
* Landoo

Contributors
------------

- Jaime Arroyo <[email protected]>
- Enric Tobella <[email protected]>
- Saran Lim. <[email protected]>
- Nagore Salaberria <[email protected]>
- Josean Soroa <[email protected]>
- Aritz Olea <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

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_modification_tracking>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions hr_attendance_modification_tracking/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from .hooks import pre_init_hook
17 changes: 17 additions & 0 deletions hr_attendance_modification_tracking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2019 Creu Blanca
# Copyright 2020 Landoo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "HR Attendance Modification Tracking.",
"summary": """
Attendance changes will now be registered in the chatter.""",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca, Landoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-attendance",
"depends": ["hr_attendance"],
"data": ["views/hr_attendance_view.xml"],
"pre_init_hook": "pre_init_hook",
"installable": True,
}
11 changes: 11 additions & 0 deletions hr_attendance_modification_tracking/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


def pre_init_hook(env):
env.cr.execute(
"""
ALTER TABLE hr_attendance
ADD COLUMN IF NOT EXISTS time_changed_manually BOOLEAN
"""
)
153 changes: 153 additions & 0 deletions hr_attendance_modification_tracking/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_attendance_modification_tracking
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-05 22:13+0000\n"
"Last-Translator: Carles Antoli <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\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 3.10\n"

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_needaction
msgid "Action Needed"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_attachment_count
msgid "Attachment Count"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model,name:hr_attendance_modification_tracking.model_hr_attendance
msgid "Attendance"
msgstr "Assistència"

#. module: hr_attendance_modification_tracking
#: model:ir.model,name:hr_attendance_modification_tracking.model_hr_employee_base
msgid "Basic Employee"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__check_in
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_employee__last_check_in
msgid "Check In"
msgstr "Entrada"

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__check_out
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_employee__last_check_out
msgid "Check Out"
msgstr "Sortida"

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__employee_id
msgid "Employee"
msgstr "Empleat"

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_follower_ids
msgid "Followers"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_partner_ids
msgid "Followers (Partners)"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__has_message
msgid "Has Message"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,help:hr_attendance_modification_tracking.field_hr_attendance__message_needaction
msgid "If checked, new messages require your attention."
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,help:hr_attendance_modification_tracking.field_hr_attendance__message_has_error
msgid "If checked, some messages have a delivery error."
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_is_follower
msgid "Is Follower"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_employee_base__last_check_in
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_employee_public__last_check_in
msgid "Last Check In"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_employee_base__last_check_out
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_employee_public__last_check_out
msgid "Last Check Out"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_main_attachment_id
msgid "Main Attachment"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_has_error
msgid "Message Delivery error"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_ids
msgid "Messages"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_needaction_counter
msgid "Number of Actions"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__message_has_error_counter
msgid "Number of errors"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,help:hr_attendance_modification_tracking.field_hr_attendance__message_needaction_counter
msgid "Number of messages requiring action"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,help:hr_attendance_modification_tracking.field_hr_attendance__message_has_error_counter
msgid "Number of messages with delivery error"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model_terms:ir.ui.view,arch_db:hr_attendance_modification_tracking.hr_attendance_view_tree_open
msgid "Open"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,help:hr_attendance_modification_tracking.field_hr_attendance__time_changed_manually
msgid ""
"This attendance has been manually changed by user. If attendance is created "
"from form view, a 60 seconds tolerance will be applied."
msgstr ""

#. module: hr_attendance_modification_tracking
#: model_terms:ir.ui.view,arch_db:hr_attendance_modification_tracking.hr_attendance_view_search
msgid "Time Changed"
msgstr ""

#. module: hr_attendance_modification_tracking
#: model:ir.model.fields,field_description:hr_attendance_modification_tracking.field_hr_attendance__time_changed_manually
msgid "Time changed"
msgstr ""
Loading