Friday, December 6, 2024
2 changes · saas-17.4
Enhancements to existing features
Point of Sale now handles adding products to the cart much faster in stores with large product lists, many order lines, or extensive pricelists. This reduces delays during checkout and helps cashiers keep sales moving smoothly during busy periods.
Original PR description
Before this commit, if you had many records and sold many products in a day, the PoS would become slow when adding products to the cart. This commit improves performance with 5000 loaded products, 1000 existing pos order lines, and 2000 pricelist items, reducing the time from about 5 seconds to 200 ms. This commit prevents unnecessary deletions on IndexedDB, retrieves the display discount policy in O(1) time complexity compared to O(n), and filters products to display on sliced products instead of all products. opw-4381390 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Tax closing now creates both the send and pay activities at the same time, so users can complete either step when it makes sense for them. This avoids confusion where payment reminders were hidden until a send activity was manually completed, helping businesses avoid missed deadlines or fines.
Original PR description
First we replaced the 'send' activity by the 'pay' activity. Since the 'pay' activity was inadequate for the FIDU /my/databases view (it's only created when there is tax to pay), we brought the 'send' activity back. But in order to see the 'pay' activity, the 'send' activity had to be marked as done & nobody knows how to do that. And what if the user wants to pay before sending? (to avoid fines) So in this PR, we create the 'send' and 'pay' acitivities at the same time. Those who want to send, send. And those who want to pay, pay. Task - TSB/BIB/CHKL/AYH discussion