Employment Status
hr_employee_state · OCA/hr
Health
50/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 128 months ago
-
Required by20/253 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
3
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.67 MB
Module directory on disk
Code analysis
10 migration notes
6 models
8 views
0 HTTP endpoints
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. (11 occurrences in this file) migration-workflow-call · source
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
employee_set_inactive— Class 'employee_set_inactive' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceemployee_set_inactive— Class 'employee_set_inactive' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcehr_employee— Class 'hr_employee' 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. (5 occurrences in this file) migration-old-api-base · sourcehr_employee— Class 'hr_employee' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (6 occurrences in this file) migration-old-style-fields · sourcehr_employee_termination_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourceview_employee_form— 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. (3 occurrences in this file) migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (4 occurrences in this file) migration-openerp-import · 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
Employee's Employment Status
Track the HR status of employees.
Dependencies
- Odoo dependencies
- Python dependencies
- python-dateutil
- System dependencies
- None
- Required by
- hr_infraction, hr_payroll_period, hr_schedule
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_employee_termination_form_view |
hr.employee.termination.form | hr.employee.termination | form | New |
hr_employee_termination_tree_view |
hr.employee.termination.tree | hr.employee.termination | tree | New |
view_contract_form |
hr.contract.form.inherit.1 | hr.contract | form | Inherits hr_contract_state.view_contract_form |
view_employee_form |
hr.employee.form.inherit.1 | hr.employee | form | Inherits hr.view_employee_form |
view_inactive_wizard |
hr.contract.end.form | hr.contract.end | form | New |
view_termination_filter |
Employees | hr.employee.termination | search | New |
view_termination_reason_form |
hr.employee.termination.reason.form | hr.employee.termination.reason | form | New |
view_termination_reason_tree |
hr.employee.termination.reason.tree | hr.employee.termination.reason | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (0)
No new fields.
Public methods (5)-
end_contract(self, cr, uid, ids, context=None) -
setup_pending_done(self, cr, uid, contract, term_vals, context=None)Start employee deactivation process. -
state_open(self, cr, uid, ids, context=None)Override 'open' contract state to also change employee state: new -> onboarding -
state_trial(self, cr, uid, ids, context=None)Override 'trial' contract state to also change employee state: new -> onboarding -
try_signal_contract_completed(self, cr, uid, context=None)
New fields (0)
No new fields.
Public methods (1)-
set_employee_inactive(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (5)-
condition_finished_onboarding(self, cr, uid, ids, context=None) -
signal_reactivate(self, cr, uid, ids, context=None) -
state_active(self, cr, uid, ids, context=None) -
state_inactive(self, cr, uid, ids, context=None) -
state_pending_inactive(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (4)-
effective_date_in_future(self, cr, uid, ids, context=None) -
state_cancel(self, cr, uid, ids, context=None) -
state_done(self, cr, uid, ids, context=None) -
unlink(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.