[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:
@@ -243,7 +243,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-center mb16" t-if="quotation.amount_undiscounted > quotation.amount_untaxed">
|
||||
<div class="text-center mb16" t-if="quotation.amount_undiscounted - quotation.amount_untaxed > 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"
|
||||
|
||||
Reference in New Issue
Block a user