Tuesday, April 28, 2026
1 change · master
New functionality added to Odoo
This update enables users to add employees to existing pay runs after they've been created. Previously, adding employees was impossible, leading to issues with off-cycle pay runs and new employee creation. Now, users can seamlessly add employees to pay runs, automatically generating payslips for them in draft state.
Original PR description
Before this commit, it was not possible to add an employee to a pay run after it was created. This caused problems when: - An employee was removed from an off-cycle pay run. - A new employee was created after the pay run had already been created. - Users should be able to add employees to an existing pay run. In this commit, - In the Employee step, add a new button next to Continue called "Add Employees" - When clicked, it opens the same list view used during pay run creation. - In the list view, show only active employees. - Filter employees within the pay run date range. - Match the correct payroll structure (if required). - If the pay run is validated (payslips validated), the button should be hidden. → Employees cannot be added in this state. - If the pay run is Ready (payslips created in draft state): → Adding employees should automatically generate payslips for them. Task - 5955049