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
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
hr_holidays_compute_days, hr_holidays_jours_ouvrables
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
HTTP endpoints (0)

No HTTP endpoints found for this module.

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')

Loading…

Loading…

Loading…