From a8be301b294d9ba61829b634c91132e42d91bf92 Mon Sep 17 00:00:00 2001 From: "Pedram (pebr)" Date: Wed, 6 Mar 2024 18:52:53 +0100 Subject: [PATCH] [FIX] point_of_sale: improve product search in large databases Before this commit, searching for a product in the product screen was problematic when dealing with large databases. The search function was triggered too frequently, leading to performance issues. With this commit, I have increased the debounce time for the product search. This reduces the frequency of search operations when user is typing. opw-3788796 closes odoo/odoo#156806 Signed-off-by: Vlad Stroia (vlst) --- .../app/screens/product_screen/product_list/product_list.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/app/screens/product_screen/product_list/product_list.xml b/addons/point_of_sale/static/src/app/screens/product_screen/product_list/product_list.xml index 1ce26aabb3b..78407ba19e5 100644 --- a/addons/point_of_sale/static/src/app/screens/product_screen/product_list/product_list.xml +++ b/addons/point_of_sale/static/src/app/screens/product_screen/product_list/product_list.xml @@ -16,7 +16,7 @@ isSmall="ui.isSmall" placeholder="'Search products...'" icon="{type: 'fa', value: 'fa-search'}" - debounceMillis="100" /> + debounceMillis="500" />