From d295b4360db93a0d3333153098e623e573ac099b Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 30 Jan 2018 13:17:50 +0100 Subject: [PATCH] [FIX] website_sale: properly switch images when selecting a variant When using product variants, the product page shows: - The product variant if different from the product image - The product image - Extra product images The product variant image has to be switched dynamically when the user choose another variant. This was broken with commit https://github.com/odoo/odoo/commit/f98bb2b86bb7c3ff0a549f24b31616c1539420a7 Indeed, it was switching the product image with the product image variant instead. This was because the variant/template order changed without switching their classes. This commit changes their order again. Also see opw-784737 --- addons/website_sale/views/templates.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 4bd9782cfb8..1adb21f370e 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -405,8 +405,8 @@