From 8dc3bd4b636ba770b2ab7950f6550f97b764f332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flavien=20Ch=C3=AAne?= Date: Thu, 7 Jun 2018 09:28:26 +0200 Subject: [PATCH] [FIX] website_sale: Correct set 'checked' attribute on variants list Purpose ======= In the website_sale.product_variants template, for the "checked" attribute in the radio input, it must be " checked' if variant_id_index == 0 else None " instead of "' checked' if variant_id_index == 0 else '' ". For this moment, it checked the last variant because we get " checked="checked" " for the first and " checked="" " for the others. Specification ============= Use None instead of '' for the checked attribute if it shouldn't be checked. --- addons/website_sale/views/templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 67969cb97ee..2f576530b88 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -609,7 +609,7 @@