From 067a241ea8eee57a7a375a31ac99e67437539141 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 24 Nov 2017 14:21:21 +0100 Subject: [PATCH] [FIX] product, web: many2one child of value Before this commit, when a product category had a similar name than an other e.g. ALL / Exp and ALL / Expenses When entering the list view of its products, it displayed the product linked to the category with the similar name e.g. When opening ALL/Exp products list, it displayed its products **plus** the products of ALL/Expenses After this commit the list view just contains the active category's products OPW 782905 --- addons/product/views/product_views.xml | 2 +- addons/web/static/src/js/views/search_inputs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 517b9c3d26a..3997545eb56 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -102,7 +102,7 @@ - + diff --git a/addons/web/static/src/js/views/search_inputs.js b/addons/web/static/src/js/views/search_inputs.js index c4478956499..6459fba77b8 100644 --- a/addons/web/static/src/js/views/search_inputs.js +++ b/addons/web/static/src/js/views/search_inputs.js @@ -152,7 +152,7 @@ var Field = Input.extend( /** @lends instance.web.search.Field# */ { if (domain) { value_to_domain = function (facetValue) { return new data.CompoundDomain(domain) - .set_eval_context({self: self.value_from(facetValue)}); + .set_eval_context({self: self.value_from(facetValue), raw_value: facetValue.attributes.value}); }; } else { value_to_domain = function (facetValue) {