Advanced Accrual Allocation
hr_holidays_accrual_advanced · OCA/hr
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 73 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.15 MB
Module directory on disk
Code analysis
5 migration notes
6 models
7 views
0 HTTP endpoints
Migration considerations
HrLeaveAllocation— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (12 methods) migration-api-multi-one · sourcehr.leave.allocation— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: limit_accrued_days, max_accrued_days, limit_carryover_days, max_carryover_days, limit_accumulated_days, max_accumulated_days, accrual_method, number_per_interval, interval_number, unit_per_interval, interval_unit. migration-track-visibilityhr_leave_allocation_accrual_calculator_accruement_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcehr_leave_allocation_accruement_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcehr_leave_allocation_view_form_manager— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_leave_allocation_accrual_calculator |
hr_leave_allocation_accrual_calculator | hr.leave.allocation.accrual.calculator | form | New |
hr_leave_allocation_accrual_calculator_accruement_view_form |
hr.leave.allocation.accrual.calculator.accruement.view.form | hr.leave.allocation.accrual.calculator.accruement | form | New |
hr_leave_allocation_accrual_calculator_accruement_view_tree |
hr.leave.allocation.accrual.calculator.accruement.view.tree | hr.leave.allocation.accrual.calculator.accruement | tree | New |
hr_leave_allocation_accruement_view_form |
hr.leave.allocation.accruement.view.form | hr.leave.allocation.accruement | form | New |
hr_leave_allocation_accruement_view_tree |
hr.leave.allocation.accruement.view.tree | hr.leave.allocation.accruement | tree | New |
hr_leave_allocation_view_form |
hr.leave.allocation.view.form.inherit.accrual | hr.leave.allocation | form | Inherits hr_holidays.hr_leave_allocation_view_form |
hr_leave_allocation_view_form_manager |
hr.leave.allocation.view.form.manager.inherit.accrual | hr.leave.allocation | form | Inherits hr_holidays.hr_leave_allocation_view_form_manager |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (2)
-
time_typeSelectionrelated='holiday_status_id.time_type'store=True -
unpaidBooleanrelated='holiday_status_id.unpaid'store=True
No public methods.
New fields (13)
-
accrual_limitIntegercompute='_compute_accrual_limit'readonly=True -
accrual_methodSelectiondefault='prorate'readonly=Trueselection=[('prorate', 'Prorate'), ('period_start', 'At the beginning of the period'), ('period_end', 'At the end of the period')]states={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Accrual Method'track_visibility='onchange' -
accruement_idsOne2many → hr.leave.allocation.accruementcomodel_name='hr.leave.allocation.accruement'inverse_name='leave_allocation_id'readonly=Truestring='Accruements' -
interval_numberIntegerdefault=<expr>help='Duration of a single accrual period, measured in Accrual Period Units'string='Accrual Period Duration'track_visibility='onchange' -
interval_unitSelectiondefault=<expr>help='Units in which Accrual Period Duration is defined'string='Accrual Period Unit'track_visibility='onchange' -
limit_accrued_daysBooleanhelp='Limit total maximum number of days accrued in one accrual period.'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Limit Number of Days Accrued'track_visibility='onchange' -
limit_accumulated_daysBooleanhelp='Limit total maximum number of days that can be accumulated.'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Limit Total Balance'track_visibility='onchange' -
limit_carryover_daysBooleanhelp='Limit total maximum number of days to carryover to next accrual period.'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Limit Number of Days to Carryover'track_visibility='onchange' -
max_accrued_daysFloathelp='Total maximum number of days accrued in one accrual period.'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Max Number of Days Accrued'track_visibility='onchange' -
max_accumulated_daysFloathelp='Total maximum number of days that can be accumulated.'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Total Balance Limit'track_visibility='onchange' -
max_carryover_daysFloathelp='Total maximum number of days to carryover to next accrual period.'readonly=Truestates={'draft': [('readonly', False)], 'confirm': [('readonly', False)]}string='Max Number of Days to Carryover'track_visibility='onchange' -
number_per_intervalFloatdefault=<expr>help='Allocation accrued per Accrual Period, measured in Allocation Units'string='Allocation per Accrual Period'track_visibility='onchange' -
unit_per_intervalSelectiondefault=<expr>help='Units in which Allocation per Accrual Period is defined'string='Allocation Unit'track_visibility='onchange'
-
action_recalculate_accrual_allocations(self)@api.multi -
action_recalculate_accrual_allocations_all(self)@api.model -
create(self, values)@api.model -
write(self, values)@api.multi
New fields (4)
-
accruedFloatreadonly=Truestring='Accrued' -
accruement_idsOne2many → hr.leave.allocation.accrual.calculator.accruementcomodel_name='hr.leave.allocation.accrual.calculator.accruement'inverse_name='calculator_id'readonly=Truestring='Accruements' -
balanceFloatreadonly=Truestring='Balance' -
dateDaterequired=Truestring='Date'
No public methods.
New fields (4)
-
accrued_onDatereadonly=Truerequired=Truestring='Accruement Date' -
calculator_idMany2one → hr.leave.allocation.accrual.calculatorcomodel_name='hr.leave.allocation.accrual.calculator'string='Calculator' -
days_accruedFloatreadonly=Truerequired=Truestring='Number of Days' -
reasonCharreadonly=Truerequired=Truestring='Reason'
No public methods.
New fields (4)
-
accrued_onDatereadonly=Truerequired=Truestring='Accruement Date' -
days_accruedFloatreadonly=Truerequired=Truestring='Number of Days' -
leave_allocation_idMany2one → hr.leave.allocationcomodel_name='hr.leave.allocation'string='Leave Allocation' -
reasonCharreadonly=Truerequired=Truestring='Reason'
No public methods.
New fields (2)
-
holiday_status_idMany2onerelated='holiday_id.holiday_status_id'store=True -
unpaidBooleanrelated='holiday_id.holiday_status_id.unpaid'store=True
No public methods.