OdooWiki OCA HUB

Update Overtime from HR Contract

hr_contract_update_overtime folder_open OCA/hr-attendance open_in_new
Human Resources/Contracts License: LGPL-3

This module extends the functionality of Contracts and Attendances to support recalculating Overtime accurately, even if the contracts have changed over time.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds an "Update Overtime" action on HR contracts that recalculates overtime on the employee's attendance records for the contract period, so overtime stays correct after contract changes.

This module adds a server action called "Update Overtime" to HR contracts. It is available from the contract list and form views, and is restricted to users in the Attendance Officer group.

When run on one or more contracts, the module looks at each contract's start date and end date (or today if the contract has no end date) and collects the employee's attendance records whose check-in falls inside that period. It then recalculates the overtime on those attendance records and posts a short note "Overtime updated" in the contract's chatter.

The action only runs for contracts in the Open or Close state; contracts in other states are skipped. This is useful when a contract's dates or terms have changed and the overtime already computed on past attendances needs to be refreshed.

It touches the hr.contract model and works together with attendance data from hr_attendance. No new menus or screens are added; the feature appears as an action button on the contract itself.

Depends on

hr_contracthr_attendance
Models and fields (1)
  • hr.contract · extends an existing model

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/hr-attendance.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, follow the steps below:

  • To update a single contract:
  • Go to Employees > Employees
  • Select an employee
  • Click the In Contract Since... button
  • Click the ⚙️ actions wheel icon.
  • Click Update Overtime
  • To update multiple contracts at once:
  • Go to Employees > Contracts
  • Select the contracts you want to update
  • Click the ⚙️ actions wheel icon
  • Click Update Overtime

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.