TIP: You can type at any time to perform a new search.
Imposed holidays days
hr_holidays_imposed_days · OCA/hr
- 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
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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.modeladd imposed days if a configuration exists
New fields (8)
-
auto_confirmBoolean -
company_idMany2one → res.companydefault=<expr>string='Company' args: 'res.company' -
date_fromDatetimerequired=True -
date_toDatetimerequired=True -
employee_idsMany2many → hr.employeehelp='If empty, all employees of the company will have this day/period imposed' args: 'hr.employee' -
nameCharrequired=True -
number_of_daysFloat -
status_idMany2one → hr.holidays.statusrequired=Truestring='Leave type' args: 'hr.holidays.status'
-
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…