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

[18.0][MIG] hr_attendance_modification_tracking: Migration to 18.0 #197

Open
wants to merge 33 commits into
base: 18.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
3dc08b0
[ADD] hr_attendance_modify
Mar 14, 2019
e4f31a2
[12.0][MIG] hr_attendance_modification_tracking
Saran440 Jun 27, 2019
62c0fbd
[IMP] hr_attendance_modification_tracking: black, isort
Saran440 Feb 6, 2020
4f5bb2f
[13.0][MIG] hr_attendance_modification_tracking
Saran440 Feb 6, 2020
b38ec5a
[13.0][IMP]hr_attendance_modification_tracking: ADD 'time changed' al…
ns-landoo Jun 1, 2020
d710b80
[13.0][IMP] hr_attendance_modification_tracking: add manual column pr…
Jul 8, 2020
ed1bb63
[FIX] hr_attendance_modification_tracking: read as superuser
Jul 13, 2020
ed3a940
[MIG] hr_attendance_modification_tracking: Migration to 14.0
ao-landoo May 25, 2021
15a0919
[FIX] hr_attendance_modification_tracking
brian10048 Dec 2, 2021
5dddc4d
Added translation using Weblate (French)
petrus-v Dec 20, 2021
e2d1736
Translated using Weblate (French)
petrus-v Dec 20, 2021
fe4fcb7
Added translation using Weblate (Italian)
aleuffre Sep 26, 2022
bf2d721
Translated using Weblate (Italian)
aleuffre Sep 26, 2022
b754fea
[IMP] hr_attendance_modification_tracking: Improve views
etobella Dec 19, 2022
963a88b
Translated using Weblate (Italian)
mymage Dec 28, 2022
b606035
Translated using Weblate (Italian)
francesco-ooops Dec 30, 2022
2b31665
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
c8f3d3a
Translated using Weblate (Italian)
mymage Jan 18, 2023
de9636a
Translated using Weblate (Italian)
aleuffre Jan 23, 2023
28b1643
[FIX] hr_attendance_modification_tracking: Set related fields as not …
etobella Feb 16, 2023
f03a2b4
Translated using Weblate (Italian)
francesco-ooops Mar 9, 2023
6f3f385
[14.0][FIX] hr_attendance_modification_tracking: squash tracking warning
aleuffre Mar 28, 2023
29e58bb
Translated using Weblate (Italian)
mymage Apr 5, 2023
2c55920
Translated using Weblate (Italian)
PicchiSeba Apr 6, 2023
11729ac
Translated using Weblate (Italian)
mymage May 10, 2023
7474b0f
Translated using Weblate (Italian)
mymage May 17, 2023
bb3da97
[MIG] hr_attendance_modification_tracking: Migration to 16.0
dalonsofl Sep 25, 2023
6bd42f3
Translated using Weblate (Spanish)
Ivorra78 Feb 29, 2024
96f20b9
Translated using Weblate (Italian)
mymage Mar 4, 2024
2839880
Translated using Weblate (Italian)
mymage Jun 6, 2024
38b8fa6
[IMP] hr_attendance_modification_tracking: implement `@model_create_m…
hirenST Oct 11, 2024
bb850b6
[IMP] hr_attendance_modification_tracking: pre-commit auto fixes
HeliconiaSolutions Dec 17, 2024
694de5a
[MIG] hr_attendance_modification_tracking: Migration to 18.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/18.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-18-0/hr-attendance-18-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=18.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:%2018.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 <jaime.arroyo@creublanca.es>
- Enric Tobella <etobella@creublanca.es>
- Saran Lim. <saranl@ecosoft.co.th>
- Nagore Salaberria <ns@landoo.es>
- Josean Soroa <js@landoo.es>
- Aritz Olea <ao@landoo.es>
- ``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/18.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": "18.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 <carlesantoli@hotmail.com>\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