Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[IMP] website_sale: modify products domain by searching #444

Closed yoanymora closed 2 years ago

yoanymora commented 3 years ago

Description of the issue/feature this PR addresses: The previous behavior of the method changed added tuples to the domain of products in the wrong way, with an AND expression of OR elements, this have issues when a searching was made because the this new tuples coming from the searching have to be added as OR expressions.

Current behavior before PR: The new tuples resulting from the searching are being grouped an added at the end of the domain, then the number of tuples added minus one pipes are added before this bunch of new expression, in this way the tuples that search for products with attributes similar to the search words are being searched with an OR expression.

Desired behavior after PR is merged:

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr