HR Attendance Holidays
hr_holidays_attendance · odoo/odoo
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 8 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.99 MB
Module directory on disk
Code analysis
0 migration notes
11 models
9 views
0 HTTP endpoints
Description
Convert employee's extra hours to leave allocations.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_leave_accrual_level_view_form |
hr.leave.accrual.level.form | hr.leave.accrual.level | form | Inherits hr_holidays.hr_accrual_level_view_form |
hr_leave_allocation_overtime_manager_view_form |
hr.leave.allocation | form | Inherits hr_holidays.hr_leave_allocation_view_form | |
hr_leave_attendance_report_view_form |
hr.leave.attendance.report.form | hr.leave.attendance.report | form | New |
hr_leave_attendance_report_view_list |
hr.leave.attendance.report.list | hr.leave.attendance.report | list | New |
hr_leave_attendance_report_view_pivot |
hr.leave.attendance.report.pivot | hr.leave.attendance.report | pivot | New |
hr_leave_attendance_report_view_search |
hr.leave.attendance.report.search | hr.leave.attendance.report | search | New |
view_attendance_overtime_leave_form |
hr.attendance.overtime.leave.form | hr.attendance | form | Inherits hr_attendance.hr_attendance_view_form |
view_attendance_search_inherit_holidays |
hr.attendance.search.holidays | hr.attendance | search | Inherits hr_attendance.hr_attendance_view_filter |
view_attendance_tree_inherit_holidays |
hr.attendance.list.holidays | hr.attendance | list | Inherits hr_attendance.view_attendance_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 11
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)Reverse the allocation credits logged on the attendances before an invalidating write. Credits are reversed when ``check_in``, ``check_out`` or ``employee_id`` change (unless the context has ``skip_time_rules``), or when a validated attendance goes back to ``draft`` or is ``refused``. Re-running the rules credits the new values again. :raise ValidationError: if the allocation was already used beyond its allowed balance
New fields (0)
No new fields.
Public methods (1)-
get_attendance_data_by_employee(self, date_start, date_stop)Set ``overtime_hours`` to the sum of the time rule outputs overlapping the period.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
frequencySelectioncompute='_compute_frequency'ondelete={'worked_hours': 'cascade'}readonly=Falseselection_add=[('worked_hours', 'Per Hour Worked')]store=True
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (13)
-
activeBooleanrelated='employee_id.active' -
attendance_idsMany2many → hr.attendancecompute='_compute_leave_attendance_fields'string='Attendances' args: 'hr.attendance' -
dateDateargs: 'Date' -
department_idMany2onerelated='employee_id.department_id'string='Department' -
difference_hoursFloathelp='Worked Hours - Expected Hours + Approved Time Off' args: 'Difference' -
employee_idMany2one → hr.employeestring='Employee' args: 'hr.employee' -
expected_hoursFloatargs: 'Expected Hours' -
job_idMany2onerelated='employee_id.job_id'string='Job Position' -
leave_hoursFloatargs: 'Approved Time Off' -
leave_idsMany2many → hr.leavecompute='_compute_leave_attendance_fields'string='Time Offs' args: 'hr.leave' -
schedule_idMany2one → resource.calendarstring='Working Schedule' args: 'resource.calendar' -
work_entry_type_namesCharcompute='_compute_leave_attendance_fields' args: 'Time Types' -
worked_hoursFloatargs: 'Worked Hours'
-
init(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
has_static_work_entries(self)Attendance-based versions have no static work entries. :rtype: bool
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
attendance_work_entry_type_idMany2onedomain=[('requires_allocation', '=', False), ('count_as', '=', 'working_time')]
No public methods.
New fields (0)
No new fields.
Public methods (3)-
create(self, vals_list)@api.model_create_multi -
unlink(self) -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…