Thursday, August 14, 2025
1 change · 17.0
Enhancements to existing features
The web module now makes its existing download filename parser available for reuse by other modules. This helps teams handle downloaded file names consistently across custom download flows without changing current behavior for users.
Original PR description
Allow other modules to reuse the existing RFC 6266/5987-compliant parser for the Content-Disposition header. This avoids duplicated parsing logic and prevents subtle bugs when extracting filenames (quoted, escaped, or RFC 5987-encoded) across custom XHR/Blob download flows. This change only exports an already used function in the web download stack. No behavior change, no performance impact, and fully backward compatible. It centralizes fixes and makes testing easier while keeping modules consistent. 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