Saturday, May 23, 2026
1 change · saas-19.2
Resolved issues and error corrections
A recent update to Odoo's document processing caused errors when downloading signed documents through the Sign app. This fix ensures that compression is applied correctly after a document is merged, resolving compatibility issues with newer versions of the pypdf library. This prevents download failures and improves the reliability of the Sign app.
Original PR description
This [related PR] introduced a compression pass after calls to mergePage(). However in newer versions of pypdf (>=3.5.2), compress_content_streams() can only be called on pages of PdfWriter. An error would be raised when called on pages of a PdfReader. Steps to reproduce ----- 1. Run Odoo with pypdf>=3.5.2 2. Sign and download a document in the Sign app 3. Traceback occurs Fix ---- This commit moves the compression to the writer object, after the merged page has been added. Related pr: https://github.com/odoo/odoo/pull/261879 runbot-937761 Forward-Port-Of: odoo/odoo#266192 Forward-Port-Of: odoo/odoo#265304