Calendar Holidays Public

calendar_public_holiday
REPOSITORY
REPOSITORYOCA/calendar
GIT
GIThttps://github.com/OCA/calendar.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/calendar/tree/19.0/calendar_public_holiday
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHR/Calendar
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Camptocamp, Druidoo, Michael Telahun Makonnen, Fekete Mihai (Forest and Biomass Services Romania)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Camptocamp, Druidoo, Michael Telahun Makonnen, Fekete Mihai (Forest and Biomass Services Romania)
COMMITTERS
COMMITTERSDenis Leemann, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/calendar
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:50
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - calendar
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES openupgradelib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module handles public holidays.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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
Models touched (3)

New fields (3)
  • country_id Many2one → res.country
    args: 'res.country', 'Country'
  • line_ids One2many → calendar.public.holiday.line
    args: 'calendar.public.holiday.line', 'public_holiday_id', 'Holiday Dates'
  • year Integer
    default=<expr> required=True args: 'Calendar Year'
Public methods (2)
  • get_holidays_list(self, year=None, start_dt=None, end_dt=None, partner_id=None)
    @api.model
    Returns 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.model
    Returns 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)
  • date Date
    required=True
  • meeting_id Many2one → calendar.event
    copy=False string='Meeting' args: 'calendar.event'
  • name Char
    required=True
  • public_holiday_id Many2one → calendar.public.holiday
    ondelete='cascade' required=True args: 'calendar.public.holiday', 'Calendar Year'
  • state_ids Many2many → res.country.state
    args: 'res.country.state', 'public_holiday_state_rel', 'public_holiday_line_id', 'state_id', 'Related States'
  • variable_date Boolean
    default=True args: 'Date may change'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • unlink(self)

New fields (2)
  • public_holiday_ids Many2many → calendar.public.holiday
    comodel_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'
  • year Integer
    help='Year for which you want to create the public holidays. By default, the year following the template.'
Public methods (1)
  • create_public_holidays(self)
REPOSITORY
REPOSITORYOCA/calendar
GIT
GIThttps://github.com/OCA/calendar.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/calendar/tree/18.0/calendar_public_holiday
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYHR/Calendar
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Camptocamp, Druidoo, Michael Telahun Makonnen, Fekete Mihai (Forest and Biomass Services Romania)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Camptocamp, Druidoo, Michael Telahun Makonnen, Fekete Mihai (Forest and Biomass Services Romania)
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci, Duy (Đỗ Anh)
WEBSITE
WEBSITEhttps://github.com/OCA/calendar
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - calendar
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES openupgradelib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module handles public holidays.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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
Models touched (3)

New fields (3)
  • country_id Many2one → res.country
    args: 'res.country', 'Country'
  • line_ids One2many → calendar.public.holiday.line
    args: 'calendar.public.holiday.line', 'public_holiday_id', 'Holiday Dates'
  • year Integer
    default=<expr> required=True args: 'Calendar Year'
Public methods (2)
  • get_holidays_list(self, year=None, start_dt=None, end_dt=None, partner_id=None)
    @api.model@api.returns('calendar.public.holiday.line')
    Returns 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.model
    Returns 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)
  • date Date
    required=True
  • meeting_id Many2one → calendar.event
    copy=False string='Meeting' args: 'calendar.event'
  • name Char
    required=True
  • public_holiday_id Many2one → calendar.public.holiday
    ondelete='cascade' required=True args: 'calendar.public.holiday', 'Calendar Year'
  • state_ids Many2many → res.country.state
    args: 'res.country.state', 'public_holiday_state_rel', 'public_holiday_line_id', 'state_id', 'Related States'
  • variable_date Boolean
    default=True args: 'Date may change'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • unlink(self)

New fields (2)
  • public_holiday_ids Many2many → calendar.public.holiday
    comodel_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'
  • year Integer
    help='Year for which you want to create the public holidays. By default, the year following the template.'
Public methods (1)
  • create_public_holidays(self)