Wednesday, February 11, 2026
2 changes · 17.0
Resolved issues and error corrections
This update fixes an issue with part-time schedules and public holidays in the French localization module (l10n_fr_he_holidays). Previously, there were inconsistencies in how part-time schedules were handled alongside public holidays. This change ensures accurate scheduling and holiday calculations for French businesses, improving payroll and HR processes.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update ensures that the correct company is used when downloading FEC files, resolving a potential mismatch between the selected company in the user interface and the company used during file generation. Previously, the download process defaulted to the user's default company, leading to inaccurate reports. This fix guarantees that FEC files are generated and downloaded using the intended company data.
Original PR description
The FEC generation spans two HTTP requests: generate_fec (RPC call) and the download controller (plain GET). RPC calls include allowed_company_ids in the context, so self.env.company resolves correctly. But the plain GET to /download/fec_file/<id> carries no context, so self.env.company falls back to user.company_id (the user's default company), which may differ from the one selected in the UI. This commit aims to fix the issue by passing the company_id from generate_fec through the download URL and restore it in the controller via with_company(), with an access check to ensure the user belongs to that company. task-5926528 Forward-Port-Of: odoo/odoo#248126