Accrual
hr_accrual · OCA/hr
-
Security25/25No findings
-
Activity0/25Last human commit 124 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
hr_accrual— Class 'hr_accrual' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourcehr_accrual— Class 'hr_accrual' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourcehr_accrual_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · 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
Accruals
An Accrual is any benefit (usually time) that accrues on behalf of an employee over an extended period of time. This can be vacation days, sick days, or a simple time bank. The actual policy and mechanics of accrual should be handled by other modules. This module only provides the basic framework for recording the data.
Dependencies
- Odoo dependencies
- Python dependencies
- python-dateutil
- System dependencies
- None
- Required by
- hr_policy_accrual
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_accrual_view_form |
hr.accrual.form | hr.accrual | form | New |
hr_accrual_view_tree |
hr.accrual.tree | hr.accrual | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
get_balance(self, cr, uid, ids, employee_id, date=None, context=None)
No new fields.
Public methods (0)No public methods.