blob: fd71374fa983d7c32b8c1bd11282594fde0601e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="SplitOrderline" owl="1">
<li class="orderline" t-att-class="{ selected: isSelected, partially: props.split.quantity !== props.line.get_quantity() }">
<span class="product-name">
<t t-esc="props.line.get_product().display_name" />
</span>
<span class="price">
<t t-esc="env.pos.format_currency(props.line.get_display_price())" />
</span>
<ul class="info-list">
<t t-if="props.line.get_quantity_str() !== '1'">
<li class="info">
<t t-if="isSelected and props.line.get_unit().is_pos_groupable">
<em class="big">
<t t-esc="props.split.quantity" />
</em>
/
<t t-esc="props.line.get_quantity_str()" />
</t>
<t t-if="!(isSelected and props.line.get_unit().is_pos_groupable)">
<em>
<t t-esc="props.line.get_quantity_str()" />
</em>
</t>
<t t-esc="props.line.get_unit().name" />
at
<t t-esc="env.pos.format_currency(props.line.get_unit_price())" />
/
<t t-esc="props.line.get_unit().name" />
</li>
</t>
<t t-if="props.line.get_discount_str() !== '0'">
<li class="info">
<span>With a </span>
<em>
<t t-esc="props.line.get_discount_str()" />
<span>%</span>
</em>
<span> discount</span>
</li>
</t>
</ul>
</li>
</t>
</templates>
|