Skip to content

Commit

Permalink
[MOV] hr_attendance_overtime_nagative_hours: rename to hr_leave_dashb…
Browse files Browse the repository at this point in the history
…oard_extra_time
  • Loading branch information
xaviedoanhduy committed Aug 22, 2024
1 parent 267c30c commit 3257f11
Show file tree
Hide file tree
Showing 16 changed files with 538 additions and 42 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=====================================
HR Attendance Overtime Negative Hours
=====================================
=============================
HR Leave Dashboard Extra Time
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expand All @@ -17,18 +17,21 @@ HR Attendance Overtime Negative Hours
: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_overtime_negative_hours
:target: https://github.com/OCA/hr-attendance/tree/17.0/hr_leave_dashboard_extra_time
: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_overtime_negative_hours
:target: https://translation.odoo-community.org/projects/hr-attendance-17-0/hr-attendance-17-0-hr_leave_dashboard_extra_time
: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|

Show Negative Hours in Leaves overview (TimeOffCalendar widget)
Display an additional card at the top of the Time Off Dashboard: Extra
Hours, informing the employee about the number of extra hours he has
been working and thus the number of hours available for him to take as a
compensation leave.

**Table of contents**

Expand All @@ -41,7 +44,7 @@ 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_overtime_negative_hours%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/hr-attendance/issues/new?body=module:%20hr_leave_dashboard_extra_time%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.

Expand Down Expand Up @@ -81,6 +84,6 @@ 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_overtime_negative_hours>`_ project on GitHub.
This module is part of the `OCA/hr-attendance <https://github.com/OCA/hr-attendance/tree/17.0/hr_leave_dashboard_extra_time>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
# Copyright 2024 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HR Attendance Overtime Negative Hours",
"name": "HR Leave Dashboard Extra Time",
"summary": """
Show negative hours in leave overview.
Display an additional card at the top of the Time Off Dashboard:
Extra Hours, informing the employee about the number of extra hours
he has been working and thus the number of hours available
for him to take as a compensation leave
""",
"author": "Mint System GmbH, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-attendance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def _prepare_extra_hours_data(self, employee, target_date):
allocations_now = self.env["hr.leave.allocation"]
allocations_date = self.env["hr.leave.allocation"]
allocations_with_remaining_leaves = self.env["hr.leave.allocation"]
today = fields.Date.today()
for allocation, data in allocations_leaves_consumed[employee][self].items():
if allocation:
today = fields.Date.today()
if allocation.date_from <= today and (
not allocation.date_to or allocation.date_to >= today
):
Expand Down
1 change: 1 addition & 0 deletions hr_leave_dashboard_extra_time/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Display an additional card at the top of the Time Off Dashboard: Extra Hours, informing the employee about the number of extra hours he has been working and thus the number of hours available for him to take as a compensation leave.
Loading

0 comments on commit 3257f11

Please sign in to comment.