OdooWiki OCA HUB

HR Employee Cost History

hr_employee_cost_history folder_open OCA/timesheet open_in_new
Human Resources License: LGPL-3

This module allows to update employee's costs from a given date onwards, and logs cost changes in a separate table.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets HR users change an employee's hourly timesheet cost from a chosen date onwards, keeps a history of every cost change, and recalculates existing timesheets from that date.

This module adds a controlled way to change an employee's hourly cost without losing the previous values. On the employee form, the hourly cost field becomes read-only and two buttons appear for HR users: "Update Cost" and "Cost History".

  • "Update Cost" opens a small wizard where you enter the new cost, the date from which it applies ("From Date") and an optional comment. When you confirm, the employee's cost is updated, a new line is added to the cost history, and all timesheets from that date onwards are recalculated with the new cost.
  • "Cost History" opens a list of all past cost changes for that employee, showing the cost, the starting date, the comment and who created the record and when. The list is ordered with the most recent change first.

Business rules shown in the code: when you set a new cost from a given date, any history entries with a starting date on or after that date are deleted, so the history stays consistent. The wizard defaults the currency to the company currency and the date to today. Only users in the HR user group can see the buttons and use the wizard; the history itself is read-only for them.

The module extends the employee record (hr.employee) and works with timesheet lines (account.analytic.line) to recompute costs.

Depends on

hr_timesheet
Models and fields (3)
  • hr.employee · extends an existing modeltimesheet_cost_history_ids
  • hr.employee.timesheet.cost.wizard · new modelcomment, currency_id (Currency), employee_id (Employee), hourly_cost, starting_date (From Date)
  • hr.employee.timesheet.cost.history · new modelcomment, currency_id (Currency), employee_id (Employee), hourly_cost, starting_date

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/timesheet.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Go to Employees > and select an employee.
  • Go to Settings tab > Application Settings click on 'Update Cost'.
  • Set a new Cost and the From Date. Click on 'UPDATE'.
  • Now a new button 'Cost History' has appeared. Click on it to see employee's

cost changes.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.