Monday, June 22, 2026
1 change · 19.0
Enhancements to existing features
This update allows administrators to control when payslip PDFs are generated and emailed to employees – options include automatic delivery on validation or payment, or manual delivery. Previously, this setting was managed differently, requiring a migration script. This change simplifies management and avoids disruption for existing users.
Original PR description
Backport of odoo/enterprise#97957 adapted for stable 19.0 policy.
This commit adds a global setting that controls when payslip PDFs are generated and emailed to employees: on validation, on payment, or never (manual). The three modes are exposed in Payroll settings.
Difference from 19.1: the trigger is stored in ir.config_parameter ('hr_payroll.payslip_generate_and_send_trigger') instead of a new column on res.company, avoiding any migration script. When the parameter is absent the behaviour falls back to 'on_confirmed', preserving the existing behaviour for all current installations.
task-6268644