Repository
OCA/hr · module folder · Try on Runboat
Module version
1.0.0
Category
Human Resources
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr
Last tracking update
2026-08-07 08:43:00
Authors
Odoo Community Association (OCA), CorporateHub
Maintainers
Odoo Community Association (OCA), CorporateHub
Committers
Weblate, OCA-git-bot, oca-ci, Luis Rodriguez
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
hr_employee_service_contract
Description
With this module installed, HR Officer can keep records on employee
hire, start, and termination dates. This information is also used to
automatically calculate length of employee's service for the company.

*Hire Date* typically is the date when employee has accepted or signed
the offer.

*Start Date* typically is the date of the first official work day since
which employee is entitled to receiving benefits and various accrual
allocations.

*Termination Date* typically is the date of the last official work day
since until which employee is entitled to receiving benefits and various
accrual allocations.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_employee_form_inherit_extension view.employee.form.inherit.extension hr.employee form Inherits hr.view_employee_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (7)
  • service_duration Integer
    compute='_compute_service_duration' groups='hr.group_hr_user' help='Service duration in days' readonly=True
  • service_duration_days Integer
    compute='_compute_service_duration_display' groups='hr.group_hr_user' readonly=True string='Service Duration (days)'
  • service_duration_months Integer
    compute='_compute_service_duration_display' groups='hr.group_hr_user' readonly=True string='Service Duration (months)'
  • service_duration_years Integer
    compute='_compute_service_duration_display' groups='hr.group_hr_user' readonly=True string='Service Duration (years)'
  • service_hire_date Date
    groups='hr.group_hr_user' help='Hire date is normally the date an employee completes new hire paperwork' string='Hire Date' tracking=True
  • service_start_date Date
    groups='hr.group_hr_user' help='Start date is the first day the employee actually works and this date is used for accrual leave allocations calculation' string='Start Date' tracking=True
  • service_termination_date Date
    help='Termination date is the last day the employee actually works and this date is used for accrual leave allocations calculation' related='departure_date' string='Termination Date'
Public methods (1)
  • get_service_duration_from_date(self, date=None)
    Returns the employee service duration for the given date. This function is used in OCA/payroll modules as a helper function to calculate employee service duration calculated for the given date.

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
69 days ago
Last activity
1 day ago
Repository
OCA/hr
Pull request
[19.0][MIG] hr_employee_service: Migration to 19.0 (#1584)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
85 days ago
Last activity
85 days ago
Repository
OCA/hr
Pull request
19.0 mig hr employee service (#1578)