IMP report_mrporder

This commit is contained in:
David Beal
2019-07-16 16:02:32 +02:00
parent 2fb715905a
commit dc95c30f60
2 changed files with 23 additions and 12 deletions

View File

@@ -11,11 +11,12 @@
<td t-if="has_serial_number"><span t-field="ml.lot_id"/></td>
</xpath>
<xpath expr="//div[@class='oe_structure'][2]" position="after">
<xpath expr="//div[hasclass('oe_structure')][2]" position="after">
<t t-set="has_product_unavailable"
t-value="any(o.move_raw_ids.filtered(lambda x: not x.reserved_availability))"/>
t-value="any(o.move_raw_ids.filtered(lambda x: x.product_uom_qty &gt; x.reserved_availability))"/>
<h4 if="has_product_unavailable">
These products were unavailable while edition of this Manufacturing Order
These products were unavailable (or partially) while edition of this Manufacturing Order.
Here is complete quantities for these.
</h4>
<table class="table table-sm" t-if="o.move_raw_ids and has_product_unavailable">
<thead>
@@ -26,7 +27,7 @@
</thead>
<tbody>
<t t-set="lines"
t-value="o.move_raw_ids.filtered(lambda x: not x.reserved_availability)"/>
t-value="o.move_raw_ids.filtered(lambda x: x.product_uom_qty &gt; x.reserved_availability)"/>
<t t-foreach="lines" t-as="ml">
<tr>
<td>