TIP: You can type at any time to perform a new search.
HR Holidays Extension
hr_holidays_extension · OCA/hr
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
hr_attendance— Class 'hr_attendance' 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. migration-old-api-base · sourcehr_holidays— Class 'hr_holidays' 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. migration-old-api-base · sourcehr_holidays— Class 'hr_holidays' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_holidays— Class 'hr_holidays' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_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. 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=`. migration-old-style-fields · sourceview_leave_request_form— For a target of Odoo 17.0+: view 'view_leave_request_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/hr · module folder · Try on Runboat
- Module version
- 1.0
- Category
- Generic Modules/Human Resources
- Folder size
- 0.1 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://miketelahun.wordpress.com
- Last tracking update
- 2026-08-07 06:56:12
- Authors
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Maintainers
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Committers
- Alexis de Lattre, Alexandre Fayolle, Michael Telahun Makonnen, Sandy Carter, Stéphane Bidoul (ACSONE), OCA Transbot, moylop260, dufresnedavid
- Odoo dependencies
- Python dependencies
- python-dateutil
- System dependencies
- None
- Required by
- hr_accrual
- 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)
Code Analysis
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.