Leave Request Wizard
hr_holidays_leave_request_wizard · OCA/hr
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 73 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 12.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
AGPL-3
No conflicts with its dependencies
Folder size
0.11 MB
Module directory on disk
Code analysis
4 migration notes
4 models
6 views
0 HTTP endpoints
Migration considerations
HrLeaveWizard— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (6 methods) (3 occurrences in this file) migration-api-multi-one · sourceHrLeaveWizardDay— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcehr_leave_wizard_day_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourcehr_leave_wizard_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (3 occurrences in this file) migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_leave_view_form |
hr.leave.form | hr.leave | form | Inherits hr_holidays.hr_leave_view_form |
hr_leave_wizard_day_form |
hr.leave.wizard.day.form | hr.leave.wizard.day | form | New |
hr_leave_wizard_day_interval_form |
hr.leave.wizard.day.interval.form | hr.leave.wizard.day.interval | form | New |
hr_leave_wizard_day_interval_tree |
hr.leave.wizard.day.interval.tree | hr.leave.wizard.day.interval | tree | New |
hr_leave_wizard_day_tree |
hr.leave.wizard.day.tree | hr.leave.wizard.day | tree | New |
hr_leave_wizard_form |
hr.leave.wizard.form | hr.leave.wizard | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (8)
-
date_fromDatedefault=fields.Date.context_todayrequired=Truestring='Start Date' -
date_toDatedefault=fields.Date.context_todayrequired=Truestring='End Date' -
day_idsOne2many → hr.leave.wizard.daycomodel_name='hr.leave.wizard.day'inverse_name='wizard_id'string='Days' -
employee_idMany2one → hr.employeecomodel_name='hr.employee'default=<expr>required=Truestring='Employee' -
interval_idsOne2many → hr.leave.wizard.day.intervalcomodel_name='hr.leave.wizard.day.interval'inverse_name='wizard_id'string='Intervals' -
leave_type_idMany2one → hr.leave.typecomodel_name='hr.leave.type'domain=[('valid', '=', True)]required=Truestring='Leave Type' -
leave_type_request_unitSelectionrelated='leave_type_id.request_unit' -
nameCharstring='Description'
-
action_submit(self)@api.multi -
default_get(self, fields_list)@api.model -
generate_leaves(self)@api.multi
New fields (10)
-
available_daysFloatcompute='_compute_available_days'string='Available (days)' -
available_hoursFloatcompute='_compute_available_hours'string='Available (hours)' -
dateDateindex=Truerequired=Truestring='Date' -
interval_idsOne2many → hr.leave.wizard.day.intervalcomodel_name='hr.leave.wizard.day.interval'inverse_name='day_id'string='Intervals' -
leave_type_request_unitSelectionrelated='wizard_id.leave_type_id.request_unit' -
nameCharcompute='_compute_name' -
request_amountFloatstring='Request (%)' -
requested_daysFloatcompute='_compute_requested'inverse='_inverse_requested_days'string='Requested (days)' -
requested_hoursFloatcompute='_compute_requested'inverse='_inverse_requested_hours'string='Requested (hours)' -
wizard_idMany2one → hr.leave.wizardcomodel_name='hr.leave.wizard'ondelete='cascade'required=Truestring='Wizard'
No public methods.
New fields (13)
-
available_daysFloatcompute='_compute_available_days'string='Available (days)' -
available_hoursFloatcompute='_compute_available_hours'string='Available (hours)' -
dateDaterelated='day_id.date' -
day_idMany2one → hr.leave.wizard.daycomodel_name='hr.leave.wizard.day'ondelete='cascade'required=Truestring='Day' -
day_nameCharrelated='day_id.name'string='Day Name' -
leave_type_request_unitSelectionrelated='day_id.leave_type_request_unit' -
nameCharcompute='_compute_name' -
request_amountFloatstring='Request (%)' -
requested_daysFloatcompute='_compute_requested'inverse='_inverse_requested_days'string='Requested (days)' -
requested_hoursFloatcompute='_compute_requested'inverse='_inverse_requested_hours'string='Requested (hours)' -
sinceDatetimerequired=Truestring='Since' -
untilDatetimerequired=Truestring='Until' -
wizard_idMany2one → hr.leave.wizardcomodel_name='hr.leave.wizard'related='day_id.wizard_id'string='Wizard'
No public methods.