Skip to content
Health
42/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 107 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 10.0

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

Security findings
Grave / minor (static analysis)
Required by
0
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.11 MB
Module directory on disk
Code analysis 3 migration notes 2 models 2 views 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
odoo/odoo:
- hr
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

Views touched 2

XML IDNameModelTypeStatus
hr_holidays_imposed_view_form hr.holidays.imposed form New
hr_holidays_imposed_view_tree hr.holidays.imposed tree New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (0)

No new fields.

Public methods (1)
  • create(self, values)
    @api.model
    add imposed days if a configuration exists

New fields (8)
  • auto_confirm Boolean
  • company_id Many2one → res.company
    default=<expr> string='Company' args: 'res.company'
  • date_from Datetime
    required=True
  • date_to Datetime
    required=True
  • employee_ids Many2many → hr.employee
    help='If empty, all employees of the company will have this day/period imposed' args: 'hr.employee'
  • name Char
    required=True
  • number_of_days Float
  • status_id Many2one → hr.holidays.status
    required=True string='Leave type' args: 'hr.holidays.status'
Public methods (3)
  • compute_nb_days(self, diff)
    @classmethod
  • onchange_dates(self)
    @api.onchange('date_from', 'date_to')
    If there are no date set for date_to, automatically set one HOURS_PER_DAY later than the date_from. Also update the number_of_days.
  • validate(self)
    @api.multi

Loading…