HR Holidays Extension
hr_holidays_extension · OCA/hr
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 123 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis
5 migration notes
3 models
2 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
hr_holidays_status— Class 'hr_holidays_status' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (3 occurrences in this file) migration-old-api-base · sourcehr_holidays_status— Class 'hr_holidays_status' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceview_leave_request_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. migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (4 occurrences in this file) migration-openerp-import · 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
Extended Capabilities for HR Holidays (Leaves)
* When calculating the number of leave days take into account the
employee's schedule and public holidays
* The 'Need Action' mechanism assumes the HR Manager approves leave
requests
* Rename 'Leave Requests' menu item to 'My Leaves'
(which is closer to its intent)
* Add a new menu item: All Leave Requests
* New way of entering leaves based on the number of days requested, rather
than by specifying a start and end date. You tell it how many days to
grant and it calculates the start and end dates based on the employee's
schedule.
* Allow a manager to approve the leave requests of subordinates (manager
must be immediate superior of employee or manager of employee's
department and have leave approval rights)
Dependencies
- Odoo dependencies
- Python dependencies
- python-dateutil
- System dependencies
- None
- Required by
- hr_accrual
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_holiday_status_form |
hr.holidays.status.form.extension | hr.holidays.status | form | Inherits hr_holidays.edit_holiday_status_form |
view_leave_request_form |
Leave Request | hr.holidays | form | Inherits hr_holidays.edit_holiday_new |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
create(self, cr, uid, vals, context=None)
New fields (0)
No new fields.
Public methods (5)-
create(self, cr, uid, vals, context=None) -
holidays_first_validate(self, cr, uid, ids, context=None) -
holidays_validate(self, cr, uid, ids, context=None) -
onchange_bynumber(self, cr, uid, ids, no_days, date_from, employee_id, holiday_status_id, context=None)Update the dates based on the number of days requested. -
onchange_enddate(self, cr, uid, ids, employee_id, date_to, holiday_status_id, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.