OdooWiki OCA HUB

HR Worked Days From Timesheet

hr_worked_days_from_timesheet folder_open OCA/hr open_in_new
Generic Modules/Human Resources License: AGPL-3

This module allow you to automatically fill the 'Worked Days' of payslips with the information of each employee's timesheets for the payslip's period.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds an 'Import from Timesheets' button on draft payslips that fills the worked days lines from the employee's approved timesheets for the payslip period.

This module connects timesheets with payroll so you do not have to type worked days by hand on a payslip.

On a payslip in draft state, a new button 'Import from Timesheets' appears in the Worked Days area of the form. When clicked, the system looks for the employee's timesheet sheets that are fully inside the payslip period and are in the 'done' (approved) state.

  • If the payslip has no contract, an error message is shown, because worked days lines need a contract.
  • If no approved timesheet covers the whole payslip period, an error message tells you so.
  • Otherwise, one worked days line is created per timesheet sheet, with code 'TS', the total hours from the timesheet lines inside the period, the number of days of the period, and a link to the timesheet sheet.
  • Lines that were previously imported from timesheets are removed first, so clicking the button again refreshes the data instead of duplicating it.

The module touches hr.payslip and hr.payslip.worked_days, and adds two fields on worked days lines: a flag marking the line as imported from a timesheet and a link to the related timesheet sheet. It depends on the payroll and timesheet sheet modules.

Models and fields (2)
  • hr.payslip · extends an existing model
  • hr.payslip.worked_days · extends an existing modeltimesheet_sheet_id (Timesheet), imported_from_timesheet

Text generated by AI (DeepSeek) from reading the Odoo 15.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.

terminal Installation and usage

OCA documentation · Odoo 15.0

To use this module, you need to:

  • Go to 'Payroll > Employee Payslips'.
  • Open a draft payslip.
  • In 'Worked Days' section click on 'Import from Timesheets' button.

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.