OdooWiki OCA HUB

HR Calendar Rest Time

hr_calendar_rest_time folder_open OCA/hr open_in_new
Uncategorised License: AGPL-3

This module allows to add rest time to the resource calendar, to be considered during the computation of worked hours.

For example, monday employees start at 9AM and leave at 6PM, with a rest time of 1 hour. Therefore the time worked is 8 hours.

The correct working hours will then be correctly considered in various existing hr reports.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Adds a Rest Time field to working schedule lines so unpaid breaks are deducted from worked hours. Odoo then reports the real working time in HR reports.

This module lets you record a daily rest or break time on each line of a working schedule (the attendance lines of a resource calendar). A new Rest Time column appears in the schedule lines list, right after the end date, and is entered in hours and minutes.

  • The rest time is subtracted from the length of each schedule line, so a 9:00 to 18:00 line with 1 hour of rest counts as 8 worked hours.
  • It is also subtracted when Odoo computes worked hours over a period, so totals used by HR reports reflect the break.
  • The value is limited to a maximum of 23.99 hours and cannot be negative.
  • Odoo blocks saving a line when the rest time is longer than the line itself, showing the message "Rest time cannot be greater than the interval time".

The change touches the working schedule model resource.calendar, its schedule lines resource.calendar.attendance, and the shared resource mixin resource.mixin used to compute worked hours. No new menu is added; the field is visible where working schedules are configured.

Depends on

Models and fields (3)
  • resource.mixin · extends an existing model
  • resource.calendar · extends an existing model
  • resource.calendar.attendance · extends an existing modelrest_time (Rest Time)

Text generated by AI (DeepSeek) from reading the Odoo 13.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: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 13.0
  • As an admin user, go to 'Settings' and activate the developer mode.
  • Go to to 'Settings / Technical / Resource / Working Time'.
  • Add the rest time to the calendar lines, as needed.

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.