diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-02-25 16:02:45 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-04-13 17:30:16 +0200 |
| commit | 23ffff7a6f7ce066034cf78c228febf7f2e4fd38 (patch) | |
| tree | 41617ae2e47b25edaf0faf2866608cb702a7da91 /addons/web/static/src/css | |
| parent | eb0a3095223371a4fb32aee44279c18870f24f4d (diff) | |
[FIX] product: recursive category name search
Before this rev.,
if you had two child categories with the same name, e.g.:
- Chocolates / Orange
- Fruits / Orange
In the product list, searching for category "Fruits / Orange"
also returned the products from category "Chocolates / Orange",
because it fetched all products which had "Orange" in the category.
This rev. corrects this (in the above example, it returns
only products from category "Fruits / Orange".
The code is particularly complex. A proper solution would be
to store the complete name field (but this cannot be done in
stable releases, such as 8.0).
Besides, it handles the fact a product category child can have
' / ' directly in its name (it's not only the category tree separator).
e.g., you could have a category name called 'Fruits / Orange' directly
not only in the complete name.
opw-628793
Diffstat (limited to 'addons/web/static/src/css')
0 files changed, 0 insertions, 0 deletions
