Thursday, June 26, 2025
1 change · saas-18.3
Enhancements to existing features
Point of Sale now opens the product configuration popup much faster for products with many variants. This reduces waiting time for businesses with large product catalogs, improving cashier efficiency and the checkout experience.
Original PR description
Before this commit, when opening a product with variants, the exclusion lookup was performed by iterating over all product template attribute values (PTAVs). In databases with a large number of products and variants, this could lead to significant performance degradation. This commit refactors the lookup logic to achieve O(1) (constant time) complexity for exclusion searches. Instead of iterating over a potentially vast number of PTAVs, the system now directly accesses exclusions. This significantly improves the performance. As a result, in a database with 100,000 PTAVs, the speed of opening the product configuration popup has improved dramatically, changing from approximately 5 seconds to just 50 milliseconds. opw-4888069 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr