round weight to 2 decimals
parent
f1a7923739
commit
5bf3174971
|
|
@ -183,7 +183,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<t t-if="invoice_line.weight and not invoice_line.dealer_discount">
|
<t t-if="invoice_line.weight and not invoice_line.dealer_discount">
|
||||||
<span t-field="invoice_line.weight"/>
|
<span t-field="round(invoice_line.weight,2)"/>
|
||||||
kg
|
kg
|
||||||
</t>
|
</t>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<t t-if="order_line.weight">
|
<t t-if="order_line.weight">
|
||||||
<span t-field="order_line.weight"/>
|
<span t-field="round(order_line.weight,2)"/>
|
||||||
kg
|
kg
|
||||||
</t>
|
</t>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,7 @@
|
||||||
</t>
|
</t>
|
||||||
<t t-if="move_line.lot_id and not move_line.product_id.can_be_sold_unconfigured">
|
<t t-if="move_line.lot_id and not move_line.product_id.can_be_sold_unconfigured">
|
||||||
<!-- <t t-set="weight" t-value="move_line.ordered_qty*move_line.lot_id.weight"/> -->
|
<!-- <t t-set="weight" t-value="move_line.ordered_qty*move_line.lot_id.weight"/> -->
|
||||||
<span t-field="move_line.lot_id.weight"/>
|
<span t-field="round(move_line.lot_id.weight,2)"/>
|
||||||
</t>
|
</t>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
|
|
@ -275,7 +275,7 @@
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6">
|
||||||
<span style="padding-top: 5px; border-top: 1px solid;">
|
<span style="padding-top: 5px; border-top: 1px solid;">
|
||||||
<strong>Total Weight:</strong>
|
<strong>Total Weight:</strong>
|
||||||
<span t-field="o.weight"/>
|
<span t-field="round(o.weight,2)"/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue