[FIX] website_quote: monetary format
When a discount is applied on a quote, the price is not displayed with the appropriate format. opw-746087
This commit is contained in:
@@ -64,9 +64,9 @@
|
||||
t-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'
|
||||
t-att-style="line.discount and 'text-decoration: line-through' or None"
|
||||
t-att-class="(line.discount and 'text-danger' or '') + ' text-right'"/>
|
||||
<!-- TODO: apply monetary widget formating -->
|
||||
<div t-if="line.discount">
|
||||
<t t-esc="'%.2f' % ((1-line.discount / 100.0) * line.price_unit)"/>
|
||||
<t t-esc="((1-line.discount / 100.0) * line.price_unit)"
|
||||
t-options="{'widget': 'monetary', 'display_currency': quotation.pricelist_id.currency_id}"/>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-right" groups="sale.group_show_price_subtotal">
|
||||
|
||||
Reference in New Issue
Block a user