Tuesday, May 21, 2019
9 changes · master
Enhancements to existing features
Image processing now caps JPEG quality at a level where higher values no longer improve visible results. This helps avoid unnecessarily large image files while preserving image quality for users.
Original PR description
Values above 95 do not increase the quality but they disable optimizations that increase the file size unnecessarily. See `quality` parameter at https://pillow.readthedocs.io/en/4.0.x/handbook/image-file-formats.html#jpeg Part of task-1930726
Adds a shared helper that converts selected files or images into a format the system can preview or send directly. This reduces duplicated handling across several Odoo apps and supports smoother image previews and uploads without relying on traditional form submissions.
Original PR description
This can be used for example to preview an image from a file input field. It can also be used to send the base64 content of the input by RPC instead of having to rely on form submit as POST with multipart/form-data. Technically wrap FileReader.readAsDataURL in a Promise. This will also be used in task-1930726
The search panel now displays category values in the same order provided by the server. This keeps lists predictable for users and avoids confusing reordering in views such as kanban.
Original PR description
After this commit, the order of the elements of the search panel categories follow the original order received from the back-end. Task: #1972698
This update standardizes how files are read in Documents, salary contracts, and Sign workflows. It should make file upload and preview behavior more consistent for users while keeping the visible experience largely unchanged.
Original PR description
Enterprise counterpart of https://github.com/odoo/odoo/pull/33508
Resolved issues and error corrections
This fix ensures image size options passed through website URLs are handled correctly, so images can be resized as intended. It improves reliability for image display across website, profile, and e-learning pages without changing how users interact with the system.
Original PR description
Before this commit it was impossible to pass those parameters in the URL because they were received as string but expected as int.
Code cleanup and technical improvements
The messaging menu in the top bar has been streamlined to reduce complexity behind the scenes. This should make the messaging experience easier to maintain and more consistent across support, mail, and bot features without introducing major visible changes for users.
Original PR description
This commit simplifies the logic of the systray messaging menu.
Goal records in Gamification now show a readable name instead of an unclear technical label. This makes it easier for users to identify and understand goals in the interface, such as seeing “Goal / Set your Company Data.”
Original PR description
Description of the issue/feature this PR addresses: Create a human readable and clear title for goal records. Current behavior before PR: There is no valid `_rec_name` set on the model `gamification.goal`, resulting in an ugly title:  Desired behavior after PR is merged: There is a clean goal title. In this example "Goal / Set your Company Data" -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a small typo in a website payment configuration reference. The change helps ensure the payment-related view is correctly identified, reducing the risk of display or setup issues in website payments.
Original PR description
A typo. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where image size options sent through document URLs were not accepted correctly. Users and integrations can now request resized images through links as intended, improving reliability for document image handling.
Original PR description
Before this commit it was impossible to pass those parameters in the URL because they were received as string but expected as int.