Skip to content
Snippets Groups Projects
Commit 1f496609 authored by Ahmad Khanalizadeh's avatar Ahmad Khanalizadeh
Browse files

[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#107819

Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent 35085fef
Branches
Tags
No related merge requests found
......@@ -53,7 +53,7 @@ odoo.define('point_of_sale.ProductsWidgetControlPanel', function(require) {
let ProductIds = await this.rpc({
model: 'product.product',
method: 'search',
args: [['&',['available_in_pos', '=', true], '|','|','|',
args: [['&',['available_in_pos', '=', true], '|','|',
['name', 'ilike', this.searchWordInput.el.value],
['default_code', 'ilike', this.searchWordInput.el.value],
['barcode', 'ilike', this.searchWordInput.el.value]]],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment