HR Employee Cost History
hr_employee_cost_history · OCA/timesheet
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 15.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
LGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis
0 migration notes
3 models
3 views
0 HTTP endpoints
Description
This module allows to update employee's costs from a given date onwards, and logs cost changes in a separate table.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_employee_timesheet_cost_view_tree |
hr.employee.timesheet.cost.history.view.list | hr.employee.timesheet.cost.history | list | New |
hr_employee_timesheet_cost_wizard_view_form |
hr_employee_timesheet_cost_wizard.view.form | hr.employee.timesheet.cost.wizard | form | New |
hr_timesheet_retroactive_cost_view_employee_form_inherit |
hr.employee.view.form.inherit | hr.employee | form | Inherits hr.view_employee_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
timesheet_cost_history_idsOne2many → hr.employee.timesheet.cost.historycomodel_name='hr.employee.timesheet.cost.history'copy=Falseinverse_name='employee_id'
No public methods.
New fields (5)
-
commentChar -
currency_idMany2one → res.currencycomodel_name='res.currency' -
employee_idMany2one → hr.employeecomodel_name='hr.employee' -
hourly_costMonetarycurrency_field='currency_id' -
starting_dateDatedefault=fields.Date.context_todayhelp='The cost change has effect since this date.'
No public methods.
New fields (5)
-
commentChar -
currency_idMany2one → res.currencyondelete='cascade'required=True args: 'res.currency' -
employee_idMany2one → hr.employeecomodel_name='hr.employee'ondelete='cascade'required=True -
hourly_costMonetarycurrency_field='currency_id'required=True -
starting_dateDatedefault=fields.Datetime.nowhelp='Change timesheet cost from this date onwards.'required=Truestring='From Date'
-
default_get(self, fields)@api.model -
update_employee_cost(self)Recalculates employee timesheet cost from the given date. This method uses the base function _timesheet_postprocess from account_analytic_line (hr_timesheet) to recalculate employee costs. Finally logs cost changes in cost history model.
Loading…
Loading…
Loading…