[FIX] website_sale: dont remove discount class when no discount for optional product

That seems to have no impact negative to remove it.

That fixes the case when you have a main product with a discount, and a optionnal
product without the discount; before this commit, discount class was removed and
 so the striked price for the main product disappeared.
This commit is contained in:
Jeremy Kersten
2016-09-21 21:29:18 +02:00
parent e0f28d8e26
commit c0b7c9f0db
@@ -283,7 +283,6 @@ odoo.define('website_sale.website_sale', function (require) {
$default_price.closest('.oe_website_sale').addClass("discount");
$optional_price.closest('.oe_optional').show().css('text-decoration', 'line-through');
} else {
$default_price.closest('.oe_website_sale').removeClass("discount");
$optional_price.closest('.oe_optional').hide();
}
product_id = variant_ids[k][0];