Calendar Holidays Public
calendar_public_holiday · OCA/calendar
Health
77/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 18.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
0 migration notes
3 models
3 views
0 HTTP endpoints
Description
This module handles public holidays.
Dependencies
- Odoo dependencies
- Python dependencies
- openupgradelib
- System dependencies
- None
- Required by
- hr_holidays_public
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 |
|---|---|---|---|---|
calendar_public_holiday_next_year_view |
Create Next Year Public Holidays | calendar.public.holiday.next.year | form | New |
view_calendar_public_holiday_form |
calendar.public.holiday.form | calendar.public.holiday | form | New |
view_calendar_public_holiday_list |
calendar.public.holiday.list | calendar.public.holiday | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (3)
-
country_idMany2one → res.countryargs: 'res.country' -
line_idsOne2many → calendar.public.holiday.lineargs: 'calendar.public.holiday.line', 'public_holiday_id', 'Holiday Dates' -
yearIntegerdefault=<expr>required=True args: 'Calendar Year'
-
get_holidays_list(self, year=None, start_dt=None, end_dt=None, partner_id=None)@api.modelReturns recordset of calendar.public.holiday.line for the specified year and employee :param year: year as string (optional if start_dt and end_dt defined) :param start_dt: start_dt as date :param end_dt: end_dt as date :param partner_id: ID of the partner :return: recordset of calendar.public.holiday.line -
is_public_holiday(self, selected_date, partner_id=None)@api.modelReturns True if selected_date is a public holiday for the employee :param selected_date: datetime object :param partner_id: ID of the partner :return: bool
New fields (6)
-
dateDaterequired=True -
meeting_idMany2one → calendar.eventcopy=False args: 'calendar.event' -
nameCharrequired=True -
public_holiday_idMany2one → calendar.public.holidayondelete='cascade'required=True args: 'calendar.public.holiday', 'Calendar Year' -
state_idsMany2many → res.country.stateargs: 'res.country.state', 'public_holiday_state_rel', 'public_holiday_line_id', 'state_id', 'Related States' -
variable_dateBooleandefault=True args: 'Date may change'
-
create(self, vals_list)@api.model_create_multi -
unlink(self)
New fields (2)
-
public_holiday_idsMany2many → calendar.public.holidaycomodel_name='calendar.public.holiday'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)
Loading…
Loading…