Extended Leave Days Computation
hr_holidays_compute_days · OCA/hr
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 89 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 8.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.09 MB
Module directory on disk
Code analysis
1 migration note
4 models
3 views
0 HTTP endpoints
Migration considerations
edit_holiday_new— 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
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 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
edit_holiday_new |
Leave Request - Add full day + hide nº of days + show related readonly | hr.holidays | Inherits hr_holidays.edit_holiday_new | |
edit_holiday_new_manager |
Leave Request - # of days editable for manager | hr.holidays | Inherits edit_holiday_new | |
edit_holiday_status_form |
hr.holidays.status.form - Add compute fields | hr.holidays.status | form | Inherits hr_holidays.edit_holiday_status_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (1)-
get_day_work_hours_count(self, day_date, calendar=None)Return 24 as work hours when detecting through context and weekday that the day passed is one of the rest days.
New fields (4)
-
date_from_fullDatecompute='_compute_date_from_full'inverse='_inverse_date_from_full'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]} -
date_to_fullDatecompute='_compute_date_to_full'inverse='_inverse_date_to_full'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]} -
from_full_dayBooleancopy=Falsedefault=<expr>readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]} -
to_full_dayBooleancopy=Falsedefault=<expr>readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}
No public methods.
New fields (2)
-
compute_full_daysBooleandefault=Truehelp='If enabled, the number of days computed will be always for the full days in the interval'string='Compute Full Days' -
exclude_rest_daysBooleandefault=Truehelp="If enabled, the employee's day off is skipped in leave days calculation."string='Exclude Rest Days'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…