TIP: You can type at any time to perform a new search.
Manage Employee Contracts
hr_contract_state · OCA/hr
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Uses the old workflow engine (base.workflow / `trg_validate`): removed in Odoo 11.0, must be rewritten as state-field transitions. migration-workflow · source
- Uses the old workflow engine (base.workflow / `trg_validate`): removed in Odoo 11.0, must be rewritten as state-field transitions. migration-workflow · source
- Uses the old workflow engine (base.workflow / `trg_validate`): removed in Odoo 11.0, must be rewritten as state-field transitions. migration-workflow · source
- Uses the old workflow engine (base.workflow / `trg_validate`): removed in Odoo 11.0, must be rewritten as state-field transitions. migration-workflow · source
contract_view_init_form— For a target of Odoo 17.0+: view 'contract_view_init_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourcehr_contract— Class 'hr_contract' 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. migration-old-api-base · sourcehr_contract— Class 'hr_contract' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_contract— Class 'hr_contract' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_contract_form— For a target of Odoo 17.0+: view 'view_contract_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourceview_draft_contracts_tree— View 'view_draft_contracts_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceview_expiring_contracts_tree— View 'view_expiring_contracts_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/hr · module folder · Try on Runboat
- Module version
- 1.0
- Category
- Generic Modules/Human Resources
- Folder size
- 0.03 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://miketelahun.wordpress.com
- Last tracking update
- 2026-08-07 07:17:51
- Authors
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Maintainers
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Committers
- Pedro M. Baeza, Iryna Vushnevska
- Odoo dependencies
- Python dependencies
- python-dateutil
- System dependencies
- None
- Required by
- hr_policy_accrual, hr_transfer, hr_wage_increment
- Description
Employee Contract Workflow and Notifications ============================================ Easily find and keep track of employees who are nearing the end of their contracts and trial periods.
Code Analysis
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
contract_view_init_form |
hr.contract.view.form.contract_init | hr.contract | form | Inherits hr_contract_init.hr_contract_view_form |
hr_contract_view_tree |
hr.contract.tree.state | hr.contract | tree | Inherits hr_contract.hr_contract_view_tree |
hr_hr_employee_view_form2 |
hr.employee.view.form.contract_state | hr.employee | form | Inherits hr_contract.hr_hr_employee_view_form2 |
view_contract_form |
hr.contract.form.inherit.state | hr.contract | form | Inherits hr_contract.hr_contract_view_form |
view_draft_contracts_tree |
hr.contract.contract.draft.tree | hr.contract | tree | New |
view_expiring_contracts_tree |
hr.contract.contract.expire.tree | hr.contract | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (11)-
condition_trial_period(self, cr, uid, ids, context=None) -
onchange_job(self, cr, uid, ids, job_id, context=None) -
onchange_start(self, cr, uid, ids, date_start, context=None) -
state_done(self, cr, uid, ids, context=None) -
state_open(self, cr, uid, ids, context=None) -
state_pending_done(self, cr, uid, ids, context=None) -
state_trial(self, cr, uid, ids, context=None) -
try_signal_contract_completed(self, cr, uid, context=None) -
try_signal_ending_contract(self, cr, uid, context=None) -
try_signal_ending_trial(self, cr, uid, context=None) -
try_signal_open(self, cr, uid, context=None)
Loading…
Loading…
Loading…