[FIX] website_quote: amount comparison

The price comparison can be incorrect because of float representation
differences. We make the template more robust against this problem.

opw-1945541

closes odoo/odoo#32012

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-03-21 13:34:55 +00:00
parent 3e6b4844d3
commit 723c657dd3
@@ -243,7 +243,7 @@
</div>
<div class="text-center mb16" t-if="quotation.amount_undiscounted &gt; quotation.amount_untaxed">
<div class="text-center mb16" t-if="quotation.amount_undiscounted - quotation.amount_untaxed &gt; 0.01">
<p class="text-muted mb8">Your advantage:</p>
<t t-if="quotation.amount_untaxed == quotation.amount_total">
<strong t-field="quotation.amount_total"