Saturday, May 23, 2026
2 changes · saas-19.2
Enhancements to existing features
This update improves the accuracy of Indian Profit & Loss reports by incorporating 'Other Expenses' into the calculation. This ensures that net profit figures more closely align with standard accounting practices and provides a more complete financial picture for Indian businesses using Odoo Enterprise.
Original PR description
Update the Indian P&L report structure to capture accounts categorised under 'Other Expenses'. This ensures that the net profit calculation accounts for all overheads, aligning with standard accounting practices. task-6166626 Forward-Port-Of: odoo/enterprise#115402
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