Repository
OCA/hr · module folder · Try on Runboat
Module version
1.2.1
Category
Human Resources
Folder size
0.09 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), Tecnativa, iDT LABS
Maintainers
Odoo Community Association (OCA), Tecnativa, iDT LABS
Committers
Pedro M. Baeza, GitHub, OCA Transbot, OCA-git-bot, oca-travis, gprina
Odoo dependencies
odoo/odoo:
- hr
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
edit_holiday_new Leave Request - Add full day + hide nº of days + show related readonly hr.holidays Inherits hr_holidays.edit_holiday_new
edit_holiday_new_manager Leave Request - # of days editable for manager hr.holidays Inherits edit_holiday_new
edit_holiday_status_form hr.holidays.status.form - Add compute fields hr.holidays.status form Inherits hr_holidays.edit_holiday_status_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • get_day_work_hours_count(self, day_date, calendar=None)
    Return 24 as work hours when detecting through context and weekday that the day passed is one of the rest days.

New fields (4)
  • date_from_full Date
    compute='_compute_date_from_full' inverse='_inverse_date_from_full' readonly=True states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}
  • date_to_full Date
    compute='_compute_date_to_full' inverse='_inverse_date_to_full' readonly=True states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}
  • from_full_day Boolean
    copy=False default=<expr> readonly=True states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}
  • to_full_day Boolean
    copy=False default=<expr> readonly=True states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}
Public methods (0)

No public methods.

New fields (2)
  • compute_full_days Boolean
    default=True help='If enabled, the number of days computed will be always for the full days in the interval' string='Compute Full Days'
  • exclude_rest_days Boolean
    default=True help="If enabled, the employee's day off is skipped in leave days calculation." string='Exclude Rest Days'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…