Current Delivery Slip Printout:
Product Ordered Quantity
[LAP-E5] Laptop E5023 3.000 Unit(s)
I want to rearrange it to:
Qty UOM Product
3.000 Unit(s) Laptop E5023
Done so far:
1. i have created a new xml file call DR_view.xml with inherit_id="stock.report_delivery_document".
am i right?
2. i have inserted this code below to replace it. I got this search element from report_deliveryslip.xml
<xpath expr="//table[@class='table table-condensed mt48']//thead//tr" position="replace">
<table class="table table-condensed mt48" t-if="not o.pack_operation_ids">
<thead>
<tr>
<th><strong>Quantity</strong></th>
<th><strong>Unit</strong></th>
<th><strong>Product</strong></th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.move_lines" t-as="move">
<td>
<span t-field="move.ordered_qty"/>
<span t-field="move.product_uom"/>
</td>
<td><span t-field="move.product_id"/></td>
</tr>
</tbody>
</table>
</xpath>
After I updated the database, I still got the original arrangement displayed. Its seem the xpath is not able to locate and replace it. or am in the wrong template file.
Thank you for you kindness to help in advance,
Gain Charlie
Mayank Gosai