From 11e4d452d470443abd11cab434e8b0cfc56e448e Mon Sep 17 00:00:00 2001 From: Ahmad Khanalizadeh Date: Tue, 13 Dec 2022 11:08:01 +0000 Subject: [PATCH] [FIX] point_of_sale: fix product search domain This PR (https://github.com/odoo/odoo/pull/105748) introduced a bug by having an extra `OR` operator in the domain. This commit fixes the error. opw-3099849 closes odoo/odoo#107889 X-original-commit: 1f496609ecd2a7afdac53f4a622895bbe5b6cb81 Signed-off-by: Trinh Jacky (trj) --- .../src/js/Screens/ProductScreen/ProductsWidgetControlPanel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductsWidgetControlPanel.js b/addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductsWidgetControlPanel.js index 07f248bd413..9d09c8895a4 100644 --- a/addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductsWidgetControlPanel.js +++ b/addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductsWidgetControlPanel.js @@ -83,7 +83,6 @@ class ProductsWidgetControlPanel extends PosComponent { ["available_in_pos", "=", true], "|", "|", - "|", ["name", "ilike", this.state.searchInput], ["default_code", "ilike", this.state.searchInput], ["barcode", "ilike", this.state.searchInput],