[FIX] website_portal: currency rounding for "My Orders"
t-field handles better the currency rounding than t-esc. When setting the currency rounding to 0.05 instead of 0.01 (e.g. Switzerland), for 600.00: - t-esc returns 600.0 - t-field returns 600.00, as expected. opw-669945
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
<span class="label label-default"><i class="fa fa-fw fa-clock-o"/> Expired</span>
|
||||
</t>
|
||||
</td>
|
||||
<td><span t-esc="quotation.amount_total" t-esc-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'/>
|
||||
<td><span t-field="quotation.amount_total" t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
@@ -120,7 +120,7 @@
|
||||
<span class="label label-default"><i class="fa fa-fw fa-check"/> Done</span>
|
||||
</t>
|
||||
</td>
|
||||
<td><span t-esc="order.amount_total" t-esc-options='{"widget": "monetary", "display_currency": "order.pricelist_id.currency_id"}'/></td>
|
||||
<td><span t-field="order.amount_total" t-field-options='{"widget": "monetary", "display_currency": "order.pricelist_id.currency_id"}'/></td>
|
||||
</tr>
|
||||
</t>
|
||||
<tr t-att-class="'hidden' if len(orders) < 5 else ''">
|
||||
|
||||
Reference in New Issue
Block a user