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.0Adds 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.
Depends on
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-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/hr.
terminal Installation and usage
OCA documentation · Odoo 15.0Usage
Source · Odoo 15.0To 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.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.