Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 13.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 9

XML IDNameModelTypeStatus
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)
  • frequency Selection
    compute='_compute_frequency' ondelete={'worked_hours': 'cascade'} readonly=False selection_add=[('worked_hours', 'Per Hour Worked')] store=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (13)
  • active Boolean
    related='employee_id.active'
  • attendance_ids Many2many → hr.attendance
    compute='_compute_leave_attendance_fields' string='Attendances' args: 'hr.attendance'
  • date Date
    args: 'Date'
  • department_id Many2one
    related='employee_id.department_id' string='Department'
  • difference_hours Float
    help='Worked Hours - Expected Hours + Approved Time Off' args: 'Difference'
  • employee_id Many2one → hr.employee
    string='Employee' args: 'hr.employee'
  • expected_hours Float
    args: 'Expected Hours'
  • job_id Many2one
    related='employee_id.job_id' string='Job Position'
  • leave_hours Float
    args: 'Approved Time Off'
  • leave_ids Many2many → hr.leave
    compute='_compute_leave_attendance_fields' string='Time Offs' args: 'hr.leave'
  • schedule_id Many2one → resource.calendar
    string='Working Schedule' args: 'resource.calendar'
  • work_entry_type_names Char
    compute='_compute_leave_attendance_fields' args: 'Time Types'
  • worked_hours Float
    args: 'Worked Hours'
Public methods (1)
  • 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_id Many2one
    domain=[('requires_allocation', '=', False), ('count_as', '=', 'working_time')]
Public methods (0)

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…