HR Contract Hourly Rate
hr_contract_hourly_rate · OCA/hr
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 93 months ago
-
Required by5/250 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
0
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.07 MB
Module directory on disk
Code analysis
8 migration notes
4 models
4 views
0 HTTP endpoints
Migration considerations
hr_contract— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcehr_contract_job— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcehr_contract_view_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_hr_hourly_rate_class_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_contract_view_form |
hr.contract.view.form | hr.contract | form | Inherits hr_contract_multi_jobs.hr_contract_view_form |
view_hr_hourly_rate_class_filter |
Hourly Rate Classes | hr.hourly.rate.class | search | New |
view_hr_hourly_rate_class_form |
hr.hourly.rate.class.form | hr.hourly.rate.class | form | New |
view_hr_hourly_rate_class_tree |
hr.hourly.rate.class.tree | hr.hourly.rate.class | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (1)
-
salary_computation_methodSelectiondefault='monthly'help='Whether to use the annual wage or an hourly rate for computation of payslip.'required=Truestring='Salary Computation Method' args: [('yearly', 'Annual Wage'), ('monthly', 'Monthly Wage'), ('hourly', 'Hourly Wage')]
-
get_job_hourly_rate(self, date_from, date_to, job_id=False, main_job=False)@api.multiGet the hourly rate related to a job on a contract for a given interval of time (date_from, date_to) 2 cases: get the hourly rate - related to a given job position id (job_id == int) - related to the main job on the contract (main_job == True) This function is intended to be used on payslip worked days to fill the hourly_rate field. If no rate completely overlap the given period (date_from, date_to), False is returned and the hourly rate must then be entered manually.
New fields (2)
-
hourly_rateFloatcompute='_get_current_hourly_rate'string='Hourly Rate' -
hourly_rate_class_idMany2one → hr.hourly.rate.classstring='Hourly Rate Class' args: 'hr.hourly.rate.class'
No public methods.
New fields (4)
-
class_idMany2one → hr.hourly.rate.classondelete='cascade'required=Truestring='Salary Class' args: 'hr.hourly.rate.class' -
date_endDatestring='End Date' -
date_startDatedefault=fields.Date.today()required=Truestring='Start Date' -
rateFloatrequired=Truestring='Rate'
No public methods.
New fields (3)
-
contract_job_idsOne2many → hr.contract.jobstring='Contract Jobs' args: 'hr.contract.job', 'hourly_rate_class_id' -
line_idsOne2many → hr.hourly.ratestring='Hourly Rates' args: 'hr.hourly.rate', 'class_id' -
nameCharindex=Truerequired=Truestring='Class Name'
No public methods.
Loading…
Loading…
Loading…