Tuesday, July 13, 2021
3 changes · master
Resolved issues and error corrections
This update removes slow dynamic filters that could cause performance issues when working with large numbers of records in inventory, manufacturing, purchasing, and landed costs. It also avoids an unnecessary warehouse setup warning and streamlines some purchasing and stock logic, making these workflows more reliable and scalable.
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
This change removes a slow filtering behavior in quality checks that could cause performance problems as data volumes grow. Users should experience faster and more reliable quality and manufacturing work order screens without changes to their workflow.
Original PR description
task-2558097
The simplified work order screen now prevents users from marking a work order as done when required quality checks are still pending. This avoids later blocking errors when completing the manufacturing order, while still allowing certain informational or registration checks to be completed automatically.
Original PR description
When a user uses the simplified view to process a Work Order which has quality checks to be done, there is currently no warning about it when marking the WO as done using the "Done" button of the simplified view. The user will therefore get an error when trying to "Mark As Done" a Manufacturing Order even if all the Work Orders are set as "Done" without warnings. This commit forbids to set as "Done" in the simplified view a workorder for which a Quality Check should be done, sending a warning message to complete the QC. This does not apply for Quality Checks of type Instructions, Register Component and Register by Product. For those types, it is possible to set the WO as Done and this will also set the QC as Done.