Skip to Content
Odoo model

hr.leave

Time Off. Defined in module hr_holidays; exists in Odoo 16, 17, 18, 19, 20. Across the upgrade steps we tracked: 50 fields added, 28 removed, 0 renamed, 3 type changes.

  1. Odoo 16 hr_holidays
  2. Odoo 17 hr_holidays
  3. Odoo 18 hr_holidays
  4. Odoo 19 hr_holidays
  5. Odoo 20 hr_holidays

Odoo 16 to 17

Community only All changes in this step

Fields removed (2)

FieldTypeModuleNotes
has_stress_daybooleanhr_holidays
holiday_allocation_idmany2onehr_holidays

Fields added (8)

FieldTypeModule
company_idmany2onehr_holidays
has_mandatory_daybooleanhr_holidays
is_user_only_responsiblebooleanhr_holidays
l10n_fr_date_to_changedbooleanl10n_fr_hr_holidays
last_several_daysbooleanhr_holidays
leave_type_increases_durationbooleanhr_holidays
number_of_hoursfloathr_holidays
resource_calendar_idmany2onehr_holidays

Now also inherits mail.thread.main.attachment (fields from these parents are listed on their own pages).

Odoo 17 to 18

Community only All changes in this step

Fields removed (14)

FieldTypeModuleNotes
activebooleanhr_holidays
all_employee_idsmany2manyhr_holidays
category_idmany2onehr_holidays
employee_idsmany2manyhr_holidays
holiday_typeselectionhr_holidays
is_user_only_responsiblebooleanhr_holidays
linked_request_idsone2manyhr_holidays
mode_company_idmany2onehr_holidays
multi_employeebooleanhr_holidays
number_of_days_displayfloathr_holidays
number_of_hours_displayfloathr_holidays
number_of_hours_textcharhr_holidays
parent_idmany2onehr_holidays
report_notetexthr_holidays

Fields added (1)

FieldTypeModule
l10n_in_contains_sandwich_leavesbooleanl10n_in_hr_holidays

Type changed (2)

FieldOdoo 17Odoo 18
request_hour_from selectionfloat
request_hour_to selectionfloat
2 views of this model removed
  • hr_holidays.hr_leave_report_search_view
  • hr_work_entry_holidays.hr_leave_view_tree_inherit_work_entry
1 actions on this model removed
  • hr_holidays.hr_leave_action_action_department

Odoo 18 to 19

Community + Enterprise All changes in this step

Fields removed (3)

FieldTypeModuleNotes
can_resetbooleanhr_holidays
manager_idmany2onehr_holidays
overtime_idmany2onehr_holidays_attendance

Fields added (9)

FieldTypeModule
can_back_to_approvebooleanhr_holidays
can_refusebooleanhr_holidays
can_validatebooleanhr_holidays
dashboard_warning_messagecharhr_holidays
employee_registration_numbercharhr_payroll_holidays
holiday_status_requires_allocationbooleanhr_holidays
max_leavesfloathr_holidays
request_date_to_periodselectionhr_holidays
virtual_remaining_leavesfloathr_holidays

Type changed (1)

FieldOdoo 18Odoo 19
leave_type_increases_duration booleanchar
4 views of this model removed
  • hr_holidays.hr_leave_view_kanban_approve_department
  • l10n_ch_hr_payroll_elm_transmission.l10n_ch_absence_leave_view_form
  • l10n_ch_hr_payroll_elm_transmission.l10n_ch_hr_leave_employee_view_dashboard
  • l10n_ch_hr_payroll_elm_transmission.l10n_ch_hr_leave_view_form
2 actions on this model removed
  • hr_holidays.action_hr_approval
  • hr_holidays.action_manager_approval

Odoo 19 to 20

Community + Enterprise All changes in this step

Fields removed (9)

FieldTypeModuleNotes
employee_overtimefloathr_holidays_attendance
holiday_status_idmany2onehr_holidays
holiday_status_requires_allocationbooleanhr_holidays
leave_type_increases_durationcharhr_holidays
leave_type_request_unitselectionhr_holidays
leave_type_support_documentbooleanhr_holidays
overtime_deductiblebooleanhr_holidays_attendance
request_unit_halfbooleanhr_holidays
request_unit_hoursbooleanhr_holidays

Fields added (32)

Show all 32
FieldTypeModule
allocation_display_warningcharhr_holidays
allowed_l10n_be_sickness_relapse_origin_leave_idsmany2manyl10n_be_hr_payroll
allowed_request_durationsjsonhr_holidays
allowed_work_entry_type_idsmany2manyhr_holidays
attachment_is_visiblebooleanhr_holidays
can_reschedulebooleanhr_holidays
category_options_idsmany2manyhr_payroll
company_country_codecharl10n_sa_hr_payroll
count_asselectionhr_holidays
country_codecharl10n_be_hr_payroll
display_codecharhr_holidays_gantt
employee_type_idmany2onehr_payroll
is_time_rule_trimmedbooleanhr_holidays
issuesjsonhr_payroll
job_idmany2onehr_payroll
l10n_be_sickness_relapse_origin_leave_idmany2onel10n_be_hr_payroll
l10n_sa_work_entry_type_change_warningcharl10n_sa_hr_payroll
options_on_work_entry_type_idsmany2manyhr_payroll
output_leave_idsone2manyhr_holidays
payslip_countintegerhr_payroll
request_date_hour_fromdatetimehr_holidays
request_date_hour_todatetimehr_holidays
request_durationselectionhr_holidays
source_leave_idmany2onehr_holidays
structure_type_idmany2onehr_payroll
time_rule_idmany2onehr_holidays
time_rule_time_rangecharhr_holidays
work_entry_type_idmany2onehr_holidays
work_entry_type_increases_durationcharhr_holidays
work_entry_type_request_unitselectionhr_holidays
work_entry_type_requires_allocationbooleanhr_holidays
work_entry_type_support_documentbooleanhr_holidays

Now also inherits hr.leave.display.name.mixin, hr.time.rule.source.mixin (fields from these parents are listed on their own pages).

9 views of this model removed
  • hr_holidays.hr_leave_view_calendar
  • hr_holidays.view_holiday_graph
  • hr_holidays.view_holiday_list
  • hr_holidays.view_holiday_pivot
  • hr_holidays_attendance.hr_leave_view_form
  • hr_payroll_holidays.hr_leave_view_form_inherit
  • hr_payroll_holidays.hr_leave_view_search
  • hr_payroll_holidays.hr_leave_view_tree_inherit_payroll
  • l10n_ch_hr_payroll.l10n_ch_absence_leave_view_form
5 actions on this model removed
  • hr_holidays.action_hr_available_holidays_report
  • hr_payroll_holidays.hr_leave_action_open_to_defer
  • hr_payroll_holidays.hr_leave_work_entry_action
  • hr_payroll_holidays.ir_actions_server_mark_as_reported
  • hr_payroll_holidays.ir_actions_server_report_to_next_month
2 menus opening this model removed
  • hr_holidays.hr_leave_menu_my
  • hr_payroll_holidays.menu_work_entry_leave_to_approve

All fields declared on hr.leave (117)

Fields this model declares itself in any version, with the versions they exist in. Inherited fields (mail.thread and other mixins) are on the parent model's page.

present not present not covered (Enterprise, Odoo 16 and 17)

Show all 117 fields
FieldTypeLabelModule1617181920
activebooleanhr_holidays
active_employeebooleanEmployee Activehr_holidays
all_employee_idsmany2many hr.employeehr_holidays
allocation_display_warningcharhr_holidays
allowed_l10n_be_sickness_relapse_origin_leave_idsmany2many hr.leaveAllowed Related Leavesl10n_be_hr_payrollE
allowed_request_durationsjsonhr_holidays
allowed_work_entry_type_idsmany2many hr.work.entry.typehr_holidays
attachment_idsone2many ir.attachmentAttachmentshr_holidays
attachment_is_visiblebooleanhr_holidays
can_approvebooleanCan Approvehr_holidays
can_back_to_approvebooleanhr_holidays
can_cancelbooleanCan Cancelhr_holidays
can_refusebooleanhr_holidays
can_reschedulebooleanhr_holidays
can_resetbooleanCan resethr_holidays
can_validatebooleanhr_holidays
category_idmany2one hr.employee.categoryEmployee Taghr_holidays
category_options_idsmany2many hr.salary.rule.categoryOptionshr_payrollE
colorintegerColorhr_holidays
company_country_codecharCompany Country Codel10n_sa_hr_payrollE
company_idmany2one res.companyhr_holidays
count_asselectionhr_holidays
country_codecharl10n_be_hr_payrollE
dashboard_warning_messagecharhr_holidays
date_fromdatetimeStart Datehr_holidays
date_todatetimeEnd Datehr_holidays
department_idmany2one hr.departmentDepartmenthr_holidays
display_codecharhr_holidays_ganttE
duration_displaycharRequestedhr_holidays
employee_company_idmany2oneEmployee Companyhr_holidays
employee_idmany2one hr.employeeEmployeehr_holidays
employee_idsmany2many hr.employeeEmployeeshr_holidays
employee_overtimefloathr_holidays_attendance
employee_registration_numbercharhr_payrollE
employee_type_idmany2one hr.employee.typehr_payrollE
first_approver_idmany2one hr.employeeFirst Approvalhr_holidays
has_mandatory_daybooleanhr_holidays
has_stress_daybooleanhr_holidays
holiday_allocation_idmany2one hr.leave.allocationAllocationhr_holidays
holiday_status_idmany2one hr.leave.typeTime Off Typehr_holidays
holiday_status_requires_allocationbooleanhr_holidays
holiday_typeselectionAllocation Modehr_holidays
is_hatchedbooleanHatchedhr_holidays
is_strikedbooleanStrikedhr_holidays
is_time_rule_trimmedbooleanTrimmed by Time Rulehr_holidays
is_user_only_responsiblebooleanhr_holidays
issuesjsonhr_payrollE
job_idmany2one hr.jobhr_payrollE
l10n_be_sickness_can_relapsebooleanl10n_be_hr_payrollE
l10n_be_sickness_relapsebooleanSickness Relapsel10n_be_hr_payrollE
l10n_be_sickness_relapse_origin_leave_idmany2one hr.leaveSickness Relapsel10n_be_hr_payrollE
l10n_ch_continued_pay_percentagefloatContinued Pay %l10n_ch_hr_payrollE
l10n_ch_disability_percentagefloatDisability %l10n_ch_hr_payrollE
l10n_ch_lpp_interruptionbooleanLPP Contributions Interruptionl10n_ch_hr_payrollE
l10n_ch_pay_interruptionbooleanPay Interruptionl10n_ch_hr_payrollE
l10n_ch_swissdec_payroll_impactbooleanl10n_ch_hr_payrollE
l10n_ch_swissdec_work_interruptionbooleanl10n_ch_hr_payrollE
l10n_fr_date_to_changedbooleanl10n_fr_hr_holidays
l10n_in_contains_sandwich_leavesbooleanl10n_in_hr_holidays
l10n_sa_work_entry_type_change_warningcharl10n_sa_hr_payrollE
last_several_daysbooleanAll dayhr_holidays
leave_type_increases_durationcharhr_holidays
leave_type_request_unitselectionhr_holidays
leave_type_support_documentbooleanhr_holidays
linked_request_idsone2many hr.leaveLinked Requestshr_holidays
manager_idmany2one hr.employeehr_holidays
max_leavesfloathr_holidays
meeting_idmany2one calendar.eventMeetinghr_holidays
mode_company_idmany2one res.companyCompany Modehr_holidays
multi_employeebooleanhr_holidays
namecharDescriptionhr_holidays
notestextReasonshr_holidays
number_of_daysfloatDuration (Days)hr_holidays
number_of_days_displayfloatDuration in dayshr_holidays
number_of_hoursfloatDuration (Hours)hr_holidays
number_of_hours_displayfloatDuration in hourshr_holidays
number_of_hours_textcharhr_holidays
options_on_work_entry_type_idsmany2manyhr_payrollE
output_leave_idsone2many hr.leavehr_holidays
overtime_deductiblebooleanhr_holidays_attendance
overtime_idmany2one hr.attendance.overtimeExtra Hourshr_holidays_attendance
parent_idmany2one hr.leaveParenthr_holidays
payslip_countintegerPayslip Counthr_payrollE
payslip_stateselectionPayslip Statehr_payrollE
private_namecharTime Off Descriptionhr_holidays
report_notetextHR Commentshr_holidays
request_date_fromdateRequest Start Datehr_holidays
request_date_from_periodselectionDate Period Starthr_holidays
request_date_hour_fromdatetimehr_holidays
request_date_hour_todatetimehr_holidays
request_date_todateRequest End Datehr_holidays
request_date_to_periodselectionDate Period Endhr_holidays
request_durationselectionDurationhr_holidays
request_hour_fromfloatHour fromhr_holidays
request_hour_tofloatHour tohr_holidays
request_unit_halfbooleanHalf-Dayhr_holidays
request_unit_hoursbooleanSpecific Timehr_holidays
resource_calendar_idmany2one resource.calendarhr_holidays
second_approver_idmany2one hr.employeeSecond Approvalhr_holidays
source_leave_idmany2one hr.leaveSource Leavehr_holidays
stateselectionStatushr_holidays
structure_type_idmany2one hr.payroll.structure.typehr_payrollE
supported_attachment_idsmany2many ir.attachmentAttach Filehr_holidays
supported_attachment_ids_countintegerhr_holidays
time_rule_idmany2one hr.time.ruleTime Rulehr_holidays
time_rule_time_rangecharhr_holidays
timesheet_idsone2many account.analytic.lineAnalytic Linesproject_timesheet_holidays
tzselectionhr_holidays
tz_mismatchbooleanhr_holidays
user_idmany2one res.usersUserhr_holidays
validation_typeselectionValidation Typehr_holidays
virtual_remaining_leavesfloatAvailable Time Offhr_holidays
work_entry_type_idmany2one hr.work.entry.typeTime Typehr_holidays
work_entry_type_increases_durationcharhr_holidays
work_entry_type_request_unitselectionhr_holidays
work_entry_type_requires_allocationbooleanhr_holidays
work_entry_type_support_documentbooleanhr_holidays
Coverage. Odoo 16 to 17 and 17 to 18 compare Community modules only (the Enterprise 16 and 17 sources are not available to us). Odoo 18 to 19 and 19 to 20 include Community and Enterprise modules. Everything here comes from a static read of the Odoo source code: a field counts as removed only when no parent model, mixin or delegated model still provides it. Fields created dynamically at run time can be missed, and entries we could not confirm are marked as low confidence.