Friday, October 11, 2024
2 changes · saas-17.4
Enhancements to existing features
Adding products to the cart is now much quicker when a Point of Sale has very large product catalogs. This improves cashier responsiveness and reduces delays during checkout for businesses managing tens of thousands of products.
Original PR description
Before this commit, adding a product to the cart with 20,000 products was slow due to the time taken to render the screen and execute the productsToDisplay function. This commit optimizes the productsToDisplay function, making it 10 times faster with large product counts. opw-4247716 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Point of Sale now avoids unnecessary local database writes when adding products to an active order. This improves responsiveness for shops with very large product catalogs, especially when working with tens of thousands of items.
Original PR description
Before this commit, loading 20,000 products into the PoS and adding a product to an order was slow due to multiple writes to the IndexedDb. This commit optimizes the process by not saving ongoing order's products in the IndexedDb, as they can be loaded as needed. Missing products are loaded when loading the orderlines. opw-4200540 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr