Thursday, August 5, 2021
4 changes · master
Resolved issues and error corrections
Image shape settings now behave correctly when users replace shaped images with GIFs or switch back to supported formats. This prevents animated GIFs from being incorrectly converted or losing animation, and avoids leftover shape data on image types that do not support shapes.
Original PR description
Issues: [ 1 ] - Edit mode > Set a shape on Image - Replace it by a GIF > GIF is not animated in the shape. - Remove the shape > the GIF is still not animated (converted and saved as base64). [ 2 ] - [1] Edit mode > Set a shape on image (mimetype = 'image/jpeg') - [2] Replace it by an animated GIF. - [3] Replace the .GIF image again by the old one. - The shape is not applied on it. The goal of this PR is to fix all issues related to wrong mimetype values / incoherent dataset by adding the `_isImageMimetypeSupported()` method to check if image format is supported and set shape accordingly. IMPORTANT: after this PR, the right mimetype value for GIF images is passed and shapes cannot be applied on them > useless shape data will be removed from non-supported images. task-2578242
This fixes an issue that could prevent PDF reports, such as invoices, from printing correctly. Businesses can now generate and share key documents more reliably without print errors interrupting daily workflows.
Original PR description
fixes for odoo/odoo#68299 can be tested with invoice print to pdf
Customers returning to Odoo after paying with Adyen will no longer risk losing their payment session due to browser cookie behavior. This helps Odoo immediately find and finish processing the payment, reducing failed or delayed order confirmations. Related payment return descriptions for PayUmoney and SIPS were also clarified.
Original PR description
Before this commit, users returning from Adyen to Odoo after payment could see their session renewed, depending on their browser's implementation of the `SameSite` cookie attribute. This prevented Odoo from retrieving the transaction from the users' session. This commit flags the return route of Adyen with `save_session=False`, hence allowing all users to immediately post-process their transactions when they return to Odoo. While we're at it, the docstrings of the return routes of PayUmoney and SIPS' have been updated for better clarity.
A recent change caused errors when users tried to print accounting reports as PDF files. This fix restores reliable PDF printing so finance teams can generate and share reports without interruption.
Original PR description
odoo/enterprise#17270 introduced an error when trying to print accounting reports to PDF