From b5516d400eec155cdabcf883f7c0f98d7bf4fb5f Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Fri, 4 May 2018 11:44:55 +0200 Subject: [PATCH] [FIX] website_sale_comparison: use variant id and not product id Before this commit, the compare button from the customized view "Alternative Products" would create the URL by joining `alternative_product_ids` which are ids from product.template. But the route /shop/compare is supposed to receive variants (product.product) IDs. Thus, it would try to search given product.template IDs in product.product records. It would then show incorrect items or no items at all if the ID does not exist. Now, we create the URL with the first variant (product.product) of the product.template. Obviously, the first product.product is arbitrary but we can't retrieve all the variants ids, it would most of the time returns too many items. opw-1840321 --- .../views/website_sale_comparison_template.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_comparison/views/website_sale_comparison_template.xml b/addons/website_sale_comparison/views/website_sale_comparison_template.xml index 3889b05a148..9bb6e10488f 100644 --- a/addons/website_sale_comparison/views/website_sale_comparison_template.xml +++ b/addons/website_sale_comparison/views/website_sale_comparison_template.xml @@ -57,7 +57,7 @@