Health
70/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 92 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
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.3 MB
Module directory on disk
Code analysis
7 migration notes
4 models
4 views
0 HTTP endpoints
Migration considerations
HrPublicHolidays— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceHrPublicHolidays— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceHrPublicHolidaysLine— 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 · sourcePublicHolidaysNextYearWizard— 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 · sourceview_public_holidays_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
assets_backend | ir.ui.view | qweb | Inherits web.assets_backend |
public_holidays_next_year_wizard_view |
Create Next Year Public Holidays | public.holidays.next.year.wizard | form | New |
view_public_holidays_form |
hr.holidays.public.form | hr.holidays.public | form | New |
view_public_holidays_tree |
hr.holidays.public.tree | hr.holidays.public | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (4)
-
country_idMany2one → res.countryargs: 'res.country', 'Country' -
display_nameCharcompute='_compute_display_name'readonly=Truestore=True args: 'Name' -
line_idsOne2many → hr.holidays.public.lineargs: 'hr.holidays.public.line', 'year_id', 'Holiday Dates' -
yearIntegerdefault=date.today().yearrequired=True args: 'Calendar Year'
-
get_holidays_list(self, year, employee_id=None)@api.model@api.returns('hr.holidays.public.line')Returns recordset of hr.holidays.public.line for the specified year and employee :param year: year as string :param employee_id: ID of the employee :return: recordset of hr.holidays.public.line -
is_public_holiday(self, selected_date, employee_id=None)@api.modelReturns True if selected_date is a public holiday for the employee :param selected_date: datetime object or string :param employee_id: ID of the employee :return: bool -
name_get(self)@api.multi
New fields (5)
-
dateDaterequired=True args: 'Date' -
nameCharrequired=True args: 'Name' -
state_idsMany2many → res.country.stateargs: 'res.country.state', 'hr_holiday_public_state_rel', 'line_id', 'state_id', 'Related States' -
variableBooleanargs: 'Date may change' -
year_idMany2one → hr.holidays.publicrequired=True args: 'hr.holidays.public', 'Calendar Year'
No public methods.
New fields (6)
-
last_dateDatereadonly=Truerequired=True -
nameCharreadonly=Truerequired=True -
next_dateDaterequired=True -
public_holidays_next_year_wizard_idMany2one → public.holidays.next.year.wizardreadonly=True args: 'public.holidays.next.year.wizard' -
template_idMany2one → hr.holidays.publicreadonly=Truerequired=Truestring='Template' args: 'hr.holidays.public' -
variableBooleanreadonly=True
No public methods.
New fields (3)
-
public_holidays_next_year_day_idsOne2many → public.holidays.next.year.day.wizcomodel_name='public.holidays.next.year.day.wiz'help="Define next year's holiday dates"inverse_name='public_holidays_next_year_wizard_id'string='Next year public holidays to create' -
template_idsMany2many → hr.holidays.publiccomodel_name='hr.holidays.public'help='Select the public holidays to use as template. If not set, latest public holidays of each country will be used. Only the last templates of each country for each year will be taken into account (If you select templates from 2012 and 2015, only the templates from 2015 will be taken into account.'string='Templates' -
yearIntegerhelp='Year for which you want to create the public holidays. By default, the year following the template.'
-
create_public_holidays(self)@api.multi -
onchange_year_template_ids(self)@api.onchange('template_ids', 'year')
Loading…
Loading…
Loading…