OdooWiki OCA HUB

Advanced Accrual Allocation

hr_holidays_accrual_advanced folder_open OCA/hr open_in_new
Human Resources License: AGPL-3

This module provides advanced accrual leaves allocation as extension to out-of-the-box per-employee accrual leave allocation capabilities of Odoo, introducing following extra features:

  • Accrual allocation history
  • Accrual allocation calculator ("How many leave days I'll have in 3 months from today?")
  • Various accrual methods
  • Various limits to express complex corporate accrual leave policies
  • Takes into account employee service period instead of create_date

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Extends Odoo leave allocations with advanced accrual rules: choose how leave days build up over time, cap accruals, carry-over and total balance, see a full accruement history and simulate the balance at a future date.

This module turns a simple leave allocation into a configurable accrual plan. On the leave allocation form, when the allocation is for a single employee and the accrual option is enabled, extra fields appear: the start and end dates, the accrual method (prorate, at the beginning of the period, or at the end of the period), the allocation per accrual period with its unit, and the accrual period duration with its unit.

Three optional limits can be switched on: a maximum number of days accrued in one period, a maximum number of days carried over to the next period, and a maximum total balance. When a limit is exceeded, the system records a negative entry explaining the loss.

Every change of the balance is stored as an accruement line (days, date, reason), shown in an Accruements section on the allocation form. Employees can read their own accruements; HR officers and managers have full access.

A 'Calculate as of Date' button opens the Accrual Balance Calculator, where a date can be entered to see the accrued amount, the resulting balance and the detailed accruements up to that date. A menu entry under the HR configuration lets HR users recalculate all validated accrual allocations at once, and a server action recalculates selected ones.

The calculation uses the employee's working calendar and service period, ignoring unpaid leave and global leaves.

Depends on

Menus it adds

Recalculate Accrual Allocations
Models and fields (6)
  • hr.leave · extends an existing modelunpaid, time_type
  • hr.leave.allocation · extends an existing modelaccrual_limit, interval_unit (Accrual Period Unit), accrual_method (Accrual Method), accruement_ids (Accruements), interval_number (Accrual Period Duration), max_accrued_days (Max Number of Days Accrued), unit_per_interval (Allocation Unit), limit_accrued_days (Limit Number of Days Accrued), max_carryover_days (Max Number of Days to Carryover), number_per_interval (Allocation per Accrual Period), limit_carryover_days (Limit Number of Days to Carryover), max_accumulated_days (Total Balance Limit), limit_accumulated_days (Limit Total Balance)
  • resource.calendar.leaves · extends an existing modelunpaid, holiday_status_id
  • hr.leave.allocation.accruement · new modelreason (Reason), accrued_on (Accruement Date), days_accrued (Number of Days), leave_allocation_id (Leave Allocation)
  • hr.leave.allocation.accrual.calculator · new modeldate (Date), accrued (Accrued), balance (Balance), accruement_ids (Accruements)
  • hr.leave.allocation.accrual.calculator.accruement · new modelreason (Reason), accrued_on (Accruement Date), days_accrued (Number of Days), calculator_id (Calculator)

Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 12.0

This module is an almost-replacement of accrual feature from the hr_holidays module and its features are configured in the same manner under the Leave Types menu.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.