Monday, September 20, 2021
8 changes · master
Enhancements to existing features
The employee organization chart now uses a clearer “See All” button when there are too many employees to display at once. This makes the chart easier to understand and gives the opened team view a proper name instead of showing an undefined label.
Original PR description
The display when too many employees where present wasn't very clear, 3 dots that were close to hidden because of the line right next to it, it has been replaced by a `See All` button instead, and the action executed upon clicking that button now has a name `Team` instead of `undefined`. TaskId-2648133
This change improves how Odoo reserves stock for deliveries and other inventory operations by processing reservations in batches. Businesses with larger inventories or many stock moves should see faster assignment of available products and reduced waiting time during warehouse workflows.
Original PR description
To increase the performance of action assign make it in batch the _gather of quants and filtered the domain efficiently. WIP add performance measurement. Co-authored-by: Tiffany Chang (tic) <tic@odoo.com> 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 Time Off dashboard now shows an information tag beside leave types that require allocation. Hovering over it explains how the remaining balance is calculated, helping employees and managers understand allocated, approved, planned, and left days at a glance.
Original PR description
Purpose: From the dashboard, the user sees the number of left time offs, but does not have an information regarding how it is calculated. In this task, we add an information tag on the Time Off dashboard next to each Time Off type that requires allocation. When we hover over the tag, we see how is the number calculated. For example, it could look the following way: Allocated : 20 days Approved: 5 days Planned: 3 days Left: 12 days task - 2643115
This change improves the speed of calculating product and component availability, especially when viewing transfers with many stock moves. It helps reduce wait times for users working with inventory, purchasing, and manufacturing records, although the feature is still noted as work in progress.
Original PR description
Try to reactivate the "Product Availabilty" (Transfer ) and "Component Availability" (MO) in the tree view. These fields was slow to compute because of the slow computation of `_compute_forecast_information`. With "Product Availabilty" fields in the tree, to read 10 tranfers with 200 moves in each tranfers: Before patch: 0.29 +-0.05 (SQL) and 3.8 +- 0.68 (Python) = +-4.09 sec After patch: 0.22 +- 0.01 (SQL) and 0.57 +- 0.04 (Python) = +- 0.69 sec The patch working better for bigger sample, and less with smaller sample. WIP, it's still not enought to reactive the "Product Availability" in the tree.
The website mobile navigation no longer displays a burger menu when there are no menu items to show. This avoids confusing visitors with an empty menu and creates a cleaner mobile browsing experience.
Original PR description
Task ID: 2345001
Odoo now lets selected internal text fields skip accent-insensitive search processing when it slows down indexing. This improves performance for important navigation and hierarchy fields while keeping safer database query handling for website-related searches.
Original PR description
Covers tasks 2627454 (allow opting out of unaccent for indexing / performance reasons) and 2634851 (natively support `psycopg2.sql` in the unaccent wrapper). Task 2551518 (unaccent indexes) is ignored, as it's not clear whether that should be handled in the ORM (with workarounds for `unaccent` not being `IMMUTABLE`) or just documented as a danger (generally speaking behaviour with respect to `unaccent` seems completely undocumented currently so...).
The Time Off dashboard now shows when available days are valid until when the related allocation has an end date. If there are multiple allocations, it displays the closest upcoming validity period, helping employees plan time off before days expire.
Original PR description
After this commit, in the Time Off dashboard, the user can see the validity period of the available days in case if the related allocation has a validity end. If the time off has more than one allocation, we display the validity of the closest one. task - 2636403
The mobile menu is no longer shown when it has no options to display. This avoids confusing users with an empty menu and makes the mobile interface feel cleaner.
Original PR description
Task ID: 2345001