Leave Management in hours

hr_holidays_hour
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/12.0/hr_holidays_hour
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSAndrea, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
hr_leave_report_tree hr.leave.report xpath Inherits hr_holidays.hr_leave_report_tree
view_employee_form_leave_inherit hr.employee xpath Inherits hr_holidays.view_employee_form_leave_inherit
Models touched (4)

New fields (1)
  • leaves_count Float
    compute='_compute_leaves_count' args: 'Number of Leaves'
Public methods (0)

No public methods.

New fields (1)
  • number_of_hours Float
    compute='_compute_number_of_hours' help='Number of hours of the leave request according to your working schedule.' readonly=True store=True args: 'Duration (hours)'
Public methods (0)

No public methods.

New fields (1)
  • number_of_hours Float
    compute='_compute_number_of_hours' help='UX field allowing to see and modify the allocation duration,computed in hours.' readonly=True store=True args: 'Allocated hours'
Public methods (0)

No public methods.

New fields (1)
  • number_of_hours Float
    readonly=True args: 'Duration (hours)'
Public methods (1)
  • init(self)
    Inject parts in the query with this hack, fetching the query and recreating it. Query is returned all in upper case and with final ';'.
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/11.0/hr_holidays_hour
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSGitHub, Andrea, OCA Transbot, oca-travis, OCA-git-bot, OCA Git Bot, Przemek Kaminski
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
edit_holiday_new_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.edit_holiday_new
view_evaluation_report_graph_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_evaluation_report_graph
view_holiday_allocation_tree_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_holiday_allocation_tree
view_holiday_graph hr.holidays xpath Inherits hr_holidays.view_holiday_graph
view_holiday_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_holiday
view_holiday_pivot hr.holidays xpath Inherits hr_holidays.view_holiday_pivot
view_holiday_simple_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_holiday_simple
view_holiday_status_tree_inherit_leave_hours hr.holidays.status xpath Inherits hr_holidays.view_holiday_status_tree
view_hr_holidays_remaining_leaves_user_graph_inherit_leave_hours hr.holidays.remaining.leaves.user xpath Inherits hr_holidays.view_hr_holidays_remaining_leaves_user_graph
view_hr_holidays_remaining_leaves_user_tree_inherit_leave_hours hr.holidays.remaining.leaves.user xpath Inherits hr_holidays.view_hr_holidays_remaining_leaves_user_tree
Models touched (4)

New fields (3)
  • holiday_ids One2many → hr.holidays
    string='Holidays' args: 'hr.holidays', 'employee_id'
  • leaves_count Integer
    compute='_compute_leaves_count' args: 'Number of Leaves'
  • remaining_hours_ids One2many → hr.holidays.remaining.leaves.user
    string='Remaining hours per Leave Type' args: 'hr.holidays.remaining.leaves.user', 'employee_id'
Public methods (0)

No public methods.

New fields (4)
  • number_of_hours Float
    compute='_compute_number_of_hours' store=True
  • number_of_hours_temp Float
    digits=(2, 2) readonly=True states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]} string='Allocation in Hours'
  • virtual_hours Float
    compute='_compute_number_of_hours' store=True
  • working_hours Float
    digits=(2, 2)
Public methods (3)
  • name_get(self)
    @api.multi
  • onchange_date(self)
    @api.onchange('date_from', 'date_to')
  • onchange_holiday_employee(self)
    @api.onchange('employee_id')

New fields (4)
  • employee_id Many2one → hr.employee
    args: 'hr.employee', 'Employee'
  • no_of_hours Float
    args: 'Approved hours'
  • no_of_leaves Integer
    args: 'Remaining hours'
  • virtual_hours Float
    args: 'Virtual hours'
Public methods (1)
  • init(self)
    Inject parts in the query with this hack, fetching the query and recreating it. Query is returned all in upper case and with final ';'.

New fields (4)
  • hours_taken Float
    compute='_compute_user_left_hours' string='Hours Already Taken'
  • max_hours Float
    compute='_compute_user_left_hours' string='Maximum Allowed Hours'
  • remaining_hours Float
    compute='_compute_user_left_hours'
  • virtual_remaining_hours Float
    compute='_compute_user_left_hours'
Public methods (2)
  • get_hours(self, employee)
    @api.multi
  • name_get(self)
    @api.multi
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/10.0/hr_holidays_hour
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSHolger Brunn, OCA Transbot, oca-travis, Iryna Vyshnevska
WEBSITE
WEBSITEhttp://www.onestein.eu
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - bus
    - web_tour
    - resource
    - calendar
    - base_action_rule
    - web_calendar
    - product
    - decimal_precision
    - report
    - hr_contract
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
edit_holiday_new_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.edit_holiday_new
view_evaluation_report_graph_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_evaluation_report_graph
view_holiday_allocation_tree_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_holiday_allocation_tree
view_holiday_graph hr.holidays xpath Inherits hr_holidays.view_holiday_graph
view_holiday_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_holiday
view_holiday_pivot hr.holidays xpath Inherits hr_holidays.view_holiday_pivot
view_holiday_simple_inherit_leave_hours hr.holidays xpath Inherits hr_holidays.view_holiday_simple
view_holiday_status_tree_inherit_leave_hours hr.holidays.status xpath Inherits hr_holidays.view_holiday_status_tree
view_hr_holidays_remaining_leaves_user_graph_inherit_leave_hours hr.holidays.remaining.leaves.user xpath Inherits hr_holidays.view_hr_holidays_remaining_leaves_user_graph
view_hr_holidays_remaining_leaves_user_tree_inherit_leave_hours hr.holidays.remaining.leaves.user xpath Inherits hr_holidays.view_hr_holidays_remaining_leaves_user_tree
Models touched (5)

New fields (3)
  • holiday_ids One2many → hr.holidays
    string='Holidays' args: 'hr.holidays', 'employee_id'
  • leaves_count Integer
    compute='_compute_leaves_count' args: 'Number of Leaves'
  • remaining_hours_ids One2many → hr.holidays.remaining.leaves.user
    string='Remaining hours per Leave Type' args: 'hr.holidays.remaining.leaves.user', 'employee_id'
Public methods (0)

No public methods.

New fields (4)
  • number_of_hours Float
    compute='_compute_number_of_hours' store=True
  • number_of_hours_temp Float
    digits=(2, 2) readonly=True states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]} string='Allocation in Hours'
  • virtual_hours Float
    compute='_compute_number_of_hours' store=True
  • working_hours Float
    digits=(2, 2)
Public methods (3)
  • name_get(self)
    @api.multi
  • onchange_date(self)
    @api.onchange('date_from', 'date_to')
  • onchange_holiday_employee(self)
    @api.onchange('employee_id')

New fields (4)
  • employee_id Many2one → hr.employee
    args: 'hr.employee', 'Employee'
  • no_of_hours Float
    args: 'Approved hours'
  • no_of_leaves Integer
    args: 'Remaining hours'
  • virtual_hours Float
    args: 'Virtual hours'
Public methods (1)
  • init(self)

New fields (4)
  • hours_taken Float
    compute='_compute_user_left_hours' string='Hours Already Taken'
  • max_hours Float
    compute='_compute_user_left_hours' string='Maximum Allowed Hours'
  • remaining_hours Float
    compute='_compute_user_left_hours'
  • virtual_remaining_hours Float
    compute='_compute_user_left_hours'
Public methods (2)
  • get_hours(self, employee)
    @api.multi
  • name_get(self)
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • interval_remove_leaves(self, interval, leave_intervals)
    @api.model