|
@ -18,43 +18,16 @@ |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
<t t-name="Orderline"> |
|
|
|
|
|
<li t-attf-class="orderline #{ line.selected ? 'selected' : '' }"> |
|
|
|
|
|
<span class="product-name"> |
|
|
|
|
|
<t t-esc="line.get_product().display_name"/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span class="price"> |
|
|
|
|
|
<t t-esc="widget.format_currency(line.get_display_price())"/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<ul class="info-list"> |
|
|
|
|
|
<t t-if="line.get_quantity_str() !== '1' || line.selected "> |
|
|
|
|
|
<li class="info"> |
|
|
|
|
|
<em> |
|
|
|
|
|
<t t-esc="line.get_quantity_str()" /> |
|
|
|
|
|
</em> |
|
|
|
|
|
<t t-esc="line.get_unit().name" /> |
|
|
|
|
|
at |
|
|
|
|
|
<t t-esc="widget.format_currency(line.get_unit_display_price(),'Product Price')" /> |
|
|
|
|
|
/ |
|
|
|
|
|
<t t-esc="line.get_unit().name" /> |
|
|
|
|
|
</li> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="line.get_discount_str() !== '0'"> |
|
|
|
|
|
<li class="info"> |
|
|
|
|
|
With a |
|
|
|
|
|
<em> |
|
|
|
|
|
<t t-esc="line.get_discount_str()" />% |
|
|
|
|
|
</em> |
|
|
|
|
|
discount |
|
|
|
|
|
</li> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<t t-extend="Orderline"> |
|
|
|
|
|
<t t-jquery=".info-list:last-child" t-operation="append"> |
|
|
<t t-if="line.get_tare_str() !== '0'"> |
|
|
<t t-if="line.get_tare_str() !== '0'"> |
|
|
<li class="info"> |
|
|
<li class="info"> |
|
|
tare = <t t-esc="line.get_tare_str_with_unit()" /> |
|
|
|
|
|
|
|
|
<i class="fa fa-beer"/> |
|
|
|
|
|
Tare : <t t-esc="line.get_tare_str_with_unit()" /> |
|
|
</li> |
|
|
</li> |
|
|
</t> |
|
|
</t> |
|
|
</ul> |
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
|
|
|
|
|
|
</templates> |
|
|
</templates> |