summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-05-04 11:44:55 +0200
committerRomain Derie <rde@odoo.com>2018-05-04 12:58:20 +0200
commitb5516d400eec155cdabcf883f7c0f98d7bf4fb5f (patch)
treed2e349539ecbe586895fdd6e83ee1e6b93255ece /addons/web/static/src/js/views/basic
parentf49a6b6ebe64688a53b224c10216790812c864e9 (diff)
[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
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions