[FIX] sale: 0.01 discount
A discount of 0.01 should appear as a regular discount. closes odoo/odoo#28686
This commit is contained in:
@@ -418,7 +418,7 @@ var ProductConfiguratorMixin = {
|
||||
var $optional_price = $parent.find(".oe_optional:first .oe_currency_value");
|
||||
$price.html(self._priceToStr(combination.price));
|
||||
$default_price.html(self._priceToStr(combination.list_price));
|
||||
if (combination.list_price - combination.price > 0.01) {
|
||||
if (combination.list_price - combination.price >= 0.01) {
|
||||
$default_price
|
||||
.closest('.oe_website_sale')
|
||||
.addClass("discount");
|
||||
@@ -567,4 +567,4 @@ var ProductConfiguratorMixin = {
|
||||
|
||||
return ProductConfiguratorMixin;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user