TIP: You can type at any time to perform a new search.
HR Employee Cost History
hr_employee_cost_history · OCA/timesheet
- Repository
- OCA/timesheet · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Human Resources
- Folder size
- 0.07 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/timesheet
- Last tracking update
- 2026-08-07 08:43:00
- Authors
- Odoo Community Association (OCA), Moduon
- Maintainers
- Odoo Community Association (OCA), Moduon
- Committers
- Saran440, Weblate, OCA-git-bot, oca-ci, Sabrina Martín
- Odoo dependencies
- Python dependencies
- freezegun
- System dependencies
- None
- Required by
- None
- Description
This module allows to update employee's costs from a given date onwards, and logs cost changes in a separate table.
Code Analysis ⓘ
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_hourly_cost.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'string='Currency' -
employee_idMany2one → hr.employeecomodel_name='hr.employee'string='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=Truestring='Currency' args: 'res.currency' -
employee_idMany2one → hr.employeecomodel_name='hr.employee'ondelete='cascade'required=Truestring='Employee' -
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 101 days ago
- Last activity
- 65 days ago
- Repository
- OCA/timesheet
- Pull request
- [MIG] hr_employee_cost_history : Migration to 19.0. (#914)
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 300 days ago
- Last activity
- 99 days ago
- Repository
- OCA/timesheet
- Pull request
- [19.0][MIG] hr_employee_cost_history: Migration to 19.0 (#835)