|
5 | 5 | <xpath expr="//div[hasclass('page')]" position="before">
|
6 | 6 | <t t-set="is_outgoing" t-value="o.picking_type_code == 'outgoing'" />
|
7 | 7 | </xpath>
|
8 |
| - <xpath |
9 |
| - expr="//table[@t-if="o.move_line_ids and o.state=='done'"]/thead/tr" |
10 |
| - position="inside" |
11 |
| - > |
| 8 | + <xpath expr="//th[@name='th_sml_quantity']" position="after"> |
12 | 9 | <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 | + > |
18 | 17 | <strong>Discount</strong>
|
19 | 18 | </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> |
22 | 22 | </t>
|
23 | 23 | </xpath>
|
24 | 24 | <xpath expr="//th[@name='th_sml_qty_ordered']" position="attributes">
|
|
94 | 94 | inherit_id="stock.stock_report_delivery_has_serial_move_line"
|
95 | 95 | >
|
96 | 96 | <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> |
107 | 97 | <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 | + > |
110 | 105 | <span t-field="move_line.sale_discount" />
|
111 | 106 | </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> |
118 | 111 | </t>
|
119 | 112 | </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> |
127 | 113 | </template>
|
128 | 114 |
|
129 | 115 | </odoo>
|
0 commit comments