Skip to content
Health
70/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 92 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.3 MB
Module directory on disk
Code analysis 7 migration notes 4 models 4 views 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
hr_holidays_compute_days, hr_holidays_jours_ouvrables

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…