Files
odoo-usability/mrp_usability/report/mrp_report.xml
2025-02-25 18:51:27 +01:00

49 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_mrporder" inherit_id="mrp.report_mrporder">
<xpath expr="//span[@t-field='o.product_qty']/.." position="after">
<div class="col-3" t-if="o.lot_producing_id">
<strong>Lot:</strong><br/>
<span t-field="o.lot_producing_id"/>
</div>
</xpath>
<!--
<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: x.product_uom_qty &gt; x.reserved_availability))"/>
<h4 if="has_product_unavailable">
These products were unavailable (or partially) while edition of this Manufacturing Order.
Here is missing quantities.
</h4>
<table class="table table-sm" t-if="o.move_raw_ids and has_product_unavailable">
<thead>
<tr>
<th>Product</th>
<th>Sold Out Quantity</th>
</tr>
</thead>
<tbody>
<t t-set="moves"
t-value="o.move_raw_ids.filtered(lambda x: x.product_uom_qty &gt; x.reserved_availability)"/>
<t t-foreach="moves" t-as="m">
<tr>
<td>
<span t-field="m.product_id"/>
</td>
<td>
<span t-esc="o.get_stock_move_sold_out_report(m)" t-if="m.state !='done'"/>
<span t-field="m.product_uom" groups="uom.group_uom"/>
</td>
</tr>
</t>
</tbody>
</table>
</xpath>
-->
</template>
</odoo>