Friday, March 8, 2024
2 changes · 17.0
Resolved issues and error corrections
This update fixes a memory issue in the delivery module that occurred when processing large numbers of stock movements. The system now retrieves only the necessary data instead of loading everything into memory, resulting in faster processing times (27% improvement) and preventing crashes when handling thousands of records.
Original PR description
compute_packages method fetches all columns for stock_move_lines and its result_package_id. If stock_move_lines are a big number, it causes memoryerror. Pre fetch only the required fields. Also its better to use _read_group then search count in a loop. ``` select COUNT(*) from stock_move_line +---------+ | count | |---------| | 2546604 | +---------+ ``` While fetching 4000 records. time before: 4.77s time after: 3.50s 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 companies from being archived if they are linked to a website. When a company associated with a website is archived, public users lose access to that website and encounter errors. This fix ensures websites remain accessible by blocking the archival of companies that power them.
Original PR description
This commit prohibits the archival of a company if it is associated with a website. opw-3749772 Forward-Port-Of: odoo/odoo#156470