Friday, July 9, 2021
11 changes · master
Enhancements to existing features
This update standardizes how Odoo apps access session information by requiring them to use a shared web module. It helps keep user and session data handling more consistent across features such as mail, point of sale, website, and autocomplete.
Original PR description
* google_recaptcha, mail, partner_autocomplete, point_of_sale, website Now, to read session information, the module "@web/session" must be imported. Not that, there is also the user service with all the user information
The settings menu item previously labeled “Template” is now labeled “Email Templates.” This makes it easier for users to distinguish email templates from other template types in Odoo, reducing confusion when navigating settings.
Original PR description
Description of the issue/feature this PR addresses: Rename the menu item 'Template' from the settings to 'Email template' . -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Dynamic product snippets on the website now show discounted prices consistently with regular product listings. Customers can see both the reduced price and the original strikethrough price in relevant snippets, making promotions clearer while browsing.
Original PR description
Show discount on product for the dynamic product snippet. The discount is displayed the same way it is for website_sale.product_item: the price with the discount and the price without discount in red and strikethroughed next to the other price. The discount is displayed for all the snippet templates displaying a price: 'Add Product to Cart', 'Detailed Product' and 'Image with price'. task-2519662 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
Tour guidance popups now center on the actual text content rather than the surrounding container. This makes onboarding and walkthrough tips look more precise when text is left- or right-aligned.
Original PR description
Before, the tour tip was centered on the container tag instead of the text content. That asymmetry was visible for text with a text-align different than center. Therefore the _reposition method of the tip has been modified to better handle such text elements. If its anchor element has inner text we use a range to get the width of the text. task-2477212 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The web editor code has been brought directly into the main Odoo codebase instead of being maintained in a separate repository. This reduces coordination overhead for future updates and should make maintenance of website editing tools simpler, with no major immediate change expected for end users.
Point of Sale payments now store the related company information directly, making company-based checks much faster on large databases. This improves performance for payment total calculations without changing the user workflow.
Original PR description
it speeds up checking multi-company rule, partically, computed field `total_payments_amount` works faster in large databases: 2,8 sec -> 0,01 sec (see fe3e84085fc9446fb2b745d99df341de980a92c0 ) 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
This update prevents keyboard shortcuts tied to hidden page elements from being triggered, reducing accidental actions. It also makes the shortcut overlay key configurable, giving administrators and developers more flexibility in how shortcuts are displayed and used.
Original PR description
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
The enterprise mail tests were updated to stop relying on an old email sending field on mail channels. This supports the platform change that moves that behavior into a dedicated mail group area, reducing future maintenance risk without affecting day-to-day users.
Original PR description
Purpose ======= Remove the usage of the "email_send" field on the <mail.channel>. Links ===== Task-2510267 See odoo/odoo/pull/71599 See odoo/enterprise/pull/19296 See odoo/upgrade/pull/2600
Several Odoo Enterprise areas now read session information through a shared session module. This keeps session-dependent behavior more consistent across documents, mobile mail, timesheet synchronization, Enterprise web menus, and Studio, reducing maintenance risk without changing normal user workflows.
Original PR description
* documents, mail_mobile, project_timesheet_synchro, web_studio Now, to read session information, the module "@web/session" must be imported. Not that, there is also the user service with all the user information.
The asset Kanban view now shows more useful information in a layout better suited to mobile screens. This helps users review and manage asset records more easily when working away from a desktop.
Original PR description
This task aims to improve the Kanban view of the assets for its use on mobile, by giving more relevant information to the user. Task id #2531143
Odoo now uses its own response system for redirects across many apps, making redirects more consistent and easier to customize. This also improves handling of language-aware website links and standardizes redirect behavior for login, email, calendar, payment, and related flows.
Original PR description
This branche replace werkeug.utils.redirect into odoo.http.redirect. odoo.http.redirect now use an http.Response type, and it become easy to add an override like 'set_cookies' e.g. 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