You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

50 lines
2.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="report_delivery_document_description"
inherit_id="stock.report_delivery_document">
<xpath expr="//div[hasclass('page')]/table" position="replace">
<table class="table table-sm" t-if="o.state!='done'"
name="stock_move_table">
<thead>
<tr>
<th name="th_sm_product">
<strong>Product</strong>
</th>
<th name="th_sm_description">
<strong>Description</strong>
</th>
<th name="th_sm_ordered">
<strong>Ordered</strong>
</th>
<th name="th_sm_quantity">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="lines"
t-value="o.move_lines.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move">
<td>
<span t-field="move.product_id"/>
<p t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name">
<span t-field="move.description_picking"/>
</p>
</td>
<td>
<t t-esc="move.name"/>
</td>
<td>
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
<td>
<span t-field="move.quantity_done"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
</xpath>
</template>
</odoo>