TIP: You can type at any time to perform a new search.
HR Public Holidays
hr_public_holidays · OCA/hr
- Repository
- OCA/hr · module folder · Try on Runboat
- Module version
- 1.3.0
- Category
- Human Resources
- Folder size
- 0.3 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://miketelahun.wordpress.com
- Last tracking update
- 2026-08-07 07:17:50
- Authors
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Maintainers
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Committers
- Holger Brunn, Pedro M. Baeza, Fekete Mihai, GitHub, Jairo Llopis, Akim Juillerat, Iryna Vyshnevska, Weblate, OCA Transbot, OCA-git-bot, oca-travis, Iryna Vushnevska
Code Analysis ⓘ
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…