Skip to content

Commit cb4fa59

Browse files
committed
Merge PR #308 into 16.0
Signed-off-by rafaelbn
2 parents ef5b108 + 8868129 commit cb4fa59

File tree

1 file changed

+22
-36
lines changed

1 file changed

+22
-36
lines changed

stock_picking_report_valued/report/stock_picking_report_valued.xml

+22-36
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
<xpath expr="//div[hasclass('page')]" position="before">
66
<t t-set="is_outgoing" t-value="o.picking_type_code == 'outgoing'" />
77
</xpath>
8-
<xpath
9-
expr="//table[@t-if=&quot;o.move_line_ids and o.state==&apos;done&apos;&quot;]/thead/tr"
10-
position="inside"
11-
>
8+
<xpath expr="//th[@name='th_sml_quantity']" position="after">
129
<t t-if="o.valued and o.sale_id and o.move_line_ids and is_outgoing">
13-
<t t-if="o.state != 'done'">
14-
<th class="text-end"><strong>Qty Reserved</strong></th>
15-
</t>
16-
<th class="text-end"><strong>Unit Price</strong></th>
17-
<th class="text-end" groups="product.group_discount_per_so_line">
10+
<th name="th_sml_unit_price" class="text-end"><strong
11+
>Unit Price</strong></th>
12+
<th
13+
name="th_sml_discount"
14+
class="text-end"
15+
groups="product.group_discount_per_so_line"
16+
>
1817
<strong>Discount</strong>
1918
</th>
20-
<th class="text-end"><strong>Subtotal</strong></th>
21-
<th class="text-end"><strong>Taxes</strong></th>
19+
<th name="th_sml_subtotal" class="text-end"><strong
20+
>Subtotal</strong></th>
21+
<th name="th_sml_taxes" class="text-end"><strong>Taxes</strong></th>
2222
</t>
2323
</xpath>
2424
<xpath expr="//th[@name='th_sml_qty_ordered']" position="attributes">
@@ -94,36 +94,22 @@
9494
inherit_id="stock.stock_report_delivery_has_serial_move_line"
9595
>
9696
<xpath expr="//td[@name='move_line_lot_qty_done']" position="after">
97-
<t t-if="move_line.picking_id.state != 'done'">
98-
<td class="text-end">
99-
<span t-field="move_line.product_uom_qty" />
100-
<span t-field="move_line.product_uom_id" /></td>
101-
</t>
102-
<t t-elif="move_line.picking_id.state == 'done'">
103-
<td class="text-center">
104-
<span t-field="move_line.qty_done" />
105-
<span t-field="move_line.product_uom_id" /></td>
106-
</t>
10797
<t t-if="o.valued and o.sale_id and o.move_line_ids and is_outgoing">
108-
<td class="text-end"><span t-field="move_line.sale_price_unit" /></td>
109-
<td class="text-end" groups="product.group_discount_per_so_line">
98+
<td name="td_sml_unit_price" class="text-end">
99+
<span t-field="move_line.sale_price_unit" /></td>
100+
<td
101+
name="td_sml_discount"
102+
class="text-end"
103+
groups="product.group_discount_per_so_line"
104+
>
110105
<span t-field="move_line.sale_discount" />
111106
</td>
112-
<td class="text-end"><span
113-
t-field="move_line.sale_price_subtotal"
114-
/></td>
115-
<td class="text-end"><span
116-
t-field="move_line.sale_tax_description"
117-
/></td>
107+
<td name="td_sml_subtotal" class="text-end">
108+
<span t-field="move_line.sale_price_subtotal" /></td>
109+
<td name="td_sml_taxes" class="text-end">
110+
<span t-field="move_line.sale_tax_description" /></td>
118111
</t>
119112
</xpath>
120-
<xpath expr="//td[@name='move_line_lot_qty_done']" position="attributes">
121-
<attribute
122-
name="t-if"
123-
add="not (o.valued or o.sale_id or o.move_line_ids or is_outgoing)"
124-
separator=" "
125-
/>
126-
</xpath>
127113
</template>
128114

129115
</odoo>

0 commit comments

Comments
 (0)