Leave Accruals

hr_leave_accruals
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/7.0/hr_leave_accruals
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Savoir-faire Linux
COMMITTERS
COMMITTERSAlexandre Fayolle, OCA Transbot, dufresnedavid
WEBSITE
WEBSITEhttps://www.savoirfairelinux.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_payroll
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - process
    - board
    - hr_contract
    - hr_holidays
    - base_calendar
    - base_status
    - base_action_rule
    - decimal_precision
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Leave Accruals
==============
This module adds leave accruals on employees and a mechanism to compute these
automaticaly.

Contributors
------------
* David Dufresne <david.dufresne@savoirfairelinux.com>
* Pierre Lamarche <pierre.lamarche@savoirfairelinux.com>

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view holidays_status_form hr.holidays.status.form hr.holidays.status notebook Inherits hr_holidays.edit_holiday_status_form
view_company_form res.company.form res.company group Inherits base.view_company_form
view_employee_form hr.employee.form hr.employee notebook Inherits hr.view_employee_form
view_hr_leave_accrual_filter hr.leave.accrual.select hr.leave.accrual search New
view_leave_accrual_form hr.leave.accrual.form hr.leave.accrual form New
view_leave_accrual_tree hr.leave.accrual.tree hr.leave.accrual tree New
Models touched (8)

New fields (0)

No new fields.

Public methods (1)
  • get_leave_accrual_id(self, cr, uid, employee_id, accrual_code=False, leave_type_id=False, context=None)
    Get a leave accrual of an employee that matches a leave_code :return: the id of a leave accrual

New fields (0)

No new fields.

Public methods (2)
  • holidays_refuse(self, cr, uid, ids, context=None)
    After an allocation of holidays is refused, remove the leave accrual line related
  • holidays_validate(self, cr, uid, ids, context=None)
    After an allocation of holidays is validated, add hours to the related leave accrual of the employee

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • compute_leave_accrual_lines(self, cr, uid, ids, context=None)
    Update an employee's leave accruals with the amounts computed in the payslip.
  • compute_sheet(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.