TIP: You can type at any time to perform a new search.
Contracts - Initial Settings
hr_contract_init · 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.addons` 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
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
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. 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=`. migration-old-style-fields · sourcecontract_init— Class 'contract_init' declares `_defaults` 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' 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 `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceinit_wage— Class 'init_wage' 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 · sourceinit_wage— Class 'init_wage' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_contract_init_form— For a target of Odoo 17.0+: view 'view_contract_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 · sourceview_contract_init_tree— View 'view_contract_init_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceview_init_wage_tree— View 'view_init_wage_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.02 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://miketelahun.wordpress.com
- Last tracking update
- 2026-08-07 07:17:50
- 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
- None
- System dependencies
- None
- Required by
- hr_contract_state, hr_policy_group, hr_schedule
- Description
Define Initial Settings on New Contracts ======================================== - Starting Wages - Salary Structure - Trial Period Length
Code Analysis
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…