Contracts - Initial Settings
hr_contract_init · OCA/hr
Health
70/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 93 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 4 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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.02 MB
Module directory on disk
Code analysis
6 migration notes
3 models
6 views
0 HTTP endpoints
Migration considerations
contract_init— Class 'contract_init' 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. (3 occurrences in this file) migration-old-api-base · sourcecontract_init— Class 'contract_init' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (4 occurrences in this file) migration-old-style-fields · sourceinit_wage— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceview_contract_init_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. migration-view-attrs-states · sourceview_contract_init_tree— 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 · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (5 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
Define Initial Settings on New Contracts
- Starting Wages
- Salary Structure
- Trial Period Length
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- hr_contract_state, hr_policy_group, hr_schedule
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_contract_view_form |
hr.contract.view.form.contract_init | hr.contract | form | Inherits hr_contract.hr_contract_view_form |
hr_contract_view_form |
hr.contract.view.form.contract_init | hr.contract | form | Inherits hr_simplify.view_contract_form |
view_contract_init_form |
hr.contract.init.form | hr.contract.init | form | New |
view_contract_init_tree |
hr.contract.init.tree | hr.contract.init | tree | New |
view_init_wage_form |
hr.contract.init.wage.form | hr.contract.init.wage | form | New |
view_init_wage_tree |
hr.contract.init.wage.tree | hr.contract.init.wage | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (3)-
get_latest_initial_values(self, cr, uid, today_str=None, context=None)Return a record with an effective date before today_str but greater than all others -
onchange_job(self, cr, uid, ids, job_id, context=None) -
onchange_trial(self, cr, uid, ids, trial_date_start, context=None)
New fields (0)
No new fields.
Public methods (4)-
set_to_draft(self, cr, uid, ids, context=None) -
state_approve(self, cr, uid, ids, context=None) -
state_decline(self, cr, uid, ids, context=None) -
unlink(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
unlink(self, cr, uid, ids, context=None)
Loading…
Loading…
Loading…