HR Public Holidays

hr_public_holidays
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/10.0/hr_public_holidays
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSHolger Brunn, Pedro M. Baeza, Fekete Mihai, GitHub, Jairo Llopis, Akim Juillerat, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Iryna Vyshnevska, Iryna Vushnevska
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - bus
    - web_tour
    - resource
    - calendar
    - base_action_rule
    - web_calendar
    - product
    - decimal_precision
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

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

New fields (4)
  • country_id Many2one → res.country
    args: 'res.country', 'Country'
  • display_name Char
    compute='_compute_display_name' readonly=True store=True args: 'Name'
  • line_ids One2many → hr.holidays.public.line
    args: 'hr.holidays.public.line', 'year_id', 'Holiday Dates'
  • year Integer
    default=date.today().year required=True args: 'Calendar Year'
Public methods (3)
  • 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.model
    Returns 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)
  • date Date
    required=True args: 'Date'
  • name Char
    required=True args: 'Name'
  • state_ids Many2many → res.country.state
    args: 'res.country.state', 'hr_holiday_public_state_rel', 'line_id', 'state_id', 'Related States'
  • variable Boolean
    args: 'Date may change'
  • year_id Many2one → hr.holidays.public
    required=True args: 'hr.holidays.public', 'Calendar Year'
Public methods (0)

No public methods.

New fields (6)
  • last_date Date
    readonly=True required=True
  • name Char
    readonly=True required=True
  • next_date Date
    required=True
  • public_holidays_next_year_wizard_id Many2one → public.holidays.next.year.wizard
    readonly=True args: 'public.holidays.next.year.wizard'
  • template_id Many2one → hr.holidays.public
    readonly=True required=True string='Template' args: 'hr.holidays.public'
  • variable Boolean
    readonly=True
Public methods (0)

No public methods.

New fields (3)
  • public_holidays_next_year_day_ids One2many → public.holidays.next.year.day.wiz
    comodel_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_ids Many2many → hr.holidays.public
    comodel_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'
  • year Integer
    help='Year for which you want to create the public holidays. By default, the year following the template.'
Public methods (2)
  • create_public_holidays(self)
    @api.multi
  • onchange_year_template_ids(self)
    @api.onchange('template_ids', 'year')
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/9.0/hr_public_holidays
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - bus
    - resource
    - web_tip
    - hr_holidays
    - calendar
    - base_action_rule
    - web_calendar
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

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

New fields (4)
  • country_id Many2one → res.country
    args: 'res.country', 'Country'
  • display_name Char
    compute='_compute_display_name' readonly=True store=True args: 'Name'
  • line_ids One2many → hr.holidays.public.line
    args: 'hr.holidays.public.line', 'year_id', 'Holiday Dates'
  • year Integer
    default=date.today().year required=True args: 'Calendar Year'
Public methods (3)
  • 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.model
    Returns 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)
  • date Date
    required=True args: 'Date'
  • name Char
    required=True args: 'Name'
  • state_ids Many2many → res.country.state
    args: 'res.country.state', 'hr_holiday_public_state_rel', 'line_id', 'state_id', 'Related States'
  • variable Boolean
    args: 'Date may change'
  • year_id Many2one → hr.holidays.public
    required=True args: 'hr.holidays.public', 'Calendar Year'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/8.0/hr_public_holidays
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSStéphane Bidoul, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - board
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

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

New fields (4)
  • country_id Many2one → res.country
    args: 'res.country', 'Country'
  • display_name Char
    compute='_compute_display_name' readonly=True store=True args: 'Name'
  • line_ids One2many → hr.holidays.public.line
    args: 'hr.holidays.public.line', 'year_id', 'Holiday Dates'
  • year Integer
    default=date.today().year required=True args: 'Calendar Year'
Public methods (3)
  • 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.model
    Returns 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)
  • date Date
    required=True args: 'Date'
  • name Char
    required=True args: 'Name'
  • state_ids Many2many → res.country.state
    args: 'res.country.state', 'hr_holiday_public_state_rel', 'line_id', 'state_id', 'Related States'
  • variable Boolean
    args: 'Date may change'
  • year_id Many2one → hr.holidays.public
    required=True args: 'hr.holidays.public', 'Calendar Year'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/7.0/hr_public_holidays
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSAlexandre Fayolle, Michael Telahun Makonnen, Sandy Carter, Pedro M. Baeza, Daniel Reis, OCA Transbot, dufresnedavid, Nikolina Todorova
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - process
    - board
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Manage Public Holidays
======================
    

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_public_holiday_line_tree hr.holidays.public.line.tree hr.holidays.public.line tree 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
Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • get_holidays_list(self, cr, uid, year, employee_id=None, context=None)
  • is_public_holiday(self, cr, uid, dt, employee_id=None, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.