Imposed holidays days
hr_holidays_imposed_days · OCA/hr
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 107 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 10.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
3 migration notes
2 models
2 views
0 HTTP endpoints
Migration considerations
HrEmployee— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceHrHolidaysImposed— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourcehr_holidays_imposed_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_holidays_imposed_view_form |
hr.holidays.imposed | form | New | |
hr_holidays_imposed_view_tree |
hr.holidays.imposed | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (1)-
create(self, values)@api.modeladd imposed days if a configuration exists
New fields (8)
-
auto_confirmBoolean -
company_idMany2one → res.companydefault=<expr>string='Company' args: 'res.company' -
date_fromDatetimerequired=True -
date_toDatetimerequired=True -
employee_idsMany2many → hr.employeehelp='If empty, all employees of the company will have this day/period imposed' args: 'hr.employee' -
nameCharrequired=True -
number_of_daysFloat -
status_idMany2one → hr.holidays.statusrequired=Truestring='Leave type' args: 'hr.holidays.status'
-
compute_nb_days(self, diff)@classmethod -
onchange_dates(self)@api.onchange('date_from', 'date_to')If there are no date set for date_to, automatically set one HOURS_PER_DAY later than the date_from. Also update the number_of_days. -
validate(self)@api.multi
Loading…