Repository
OCA/hr · module folder · Try on Runboat
Module version
1.0.0
Category
Human Resources
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr
Last tracking update
2026-08-07 07:24:59
Authors
Odoo Community Association (OCA), Camptocamp SA
Maintainers
Odoo Community Association (OCA), Camptocamp SA
Committers
Andrea, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
odoo/odoo:
- hr
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

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…