Saturday, July 27, 2024
2 changes · saas-17.2
Enhancements to existing features
Adding products to point-of-sale orders is now faster for businesses with large loyalty product lists. This reduces delays during checkout and helps staff serve customers more smoothly.
Original PR description
Before this commit, adding products to an order in databases with a large number of products in `valid_product_ids` could take several seconds. This fix addresses the issue by utilizing a set to store the IDs, significantly speeding up the search process. opw-4075527 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
Point of Sale loyalty rewards and rules no longer automatically load large product lists that are not immediately needed. This prevents slowdowns for businesses with many products while keeping loyalty configuration behavior intact.
Original PR description
Before this commit, databases with a large number of products would load all products in `all_discount_product_ids` of rewards and `valid_product_ids` of rules due to automatic loading of missing products. This commit exempts these fields from being automatically loaded. opw-4061504 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr