[IMP] mrp_usability: add lot on mrp production report
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
'views/mrp_production.xml',
|
'views/mrp_production.xml',
|
||||||
'views/product_template.xml',
|
'views/product_template.xml',
|
||||||
'views/stock_move_line.xml',
|
'views/stock_move_line.xml',
|
||||||
# 'report/mrp_report.xml' # TODO
|
'report/mrp_report.xml'
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
<template id="report_mrporder" inherit_id="mrp.report_mrporder">
|
<template id="report_mrporder" inherit_id="mrp.report_mrporder">
|
||||||
|
|
||||||
<xpath expr="//table[1]//thead//th[1]" position="before">
|
<xpath expr="//span[@t-field='o.product_qty']/.." position="after">
|
||||||
<th t-if="has_serial_number">Lot</th>
|
<div class="col-3" t-if="o.lot_producing_id">
|
||||||
</xpath>
|
<strong>Lot:</strong><br/>
|
||||||
|
<span t-field="o.lot_producing_id"/>
|
||||||
<xpath expr="//table[1]//tbody//td[1]" position="before">
|
</div>
|
||||||
<td t-if="has_serial_number"><span t-field="ml.lot_id"/></td>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
<!--
|
||||||
<xpath expr="//div[hasclass('oe_structure')][2]" position="after">
|
<xpath expr="//div[hasclass('oe_structure')][2]" position="after">
|
||||||
<t t-set="has_product_unavailable"
|
<t t-set="has_product_unavailable"
|
||||||
t-value="any(o.move_raw_ids.filtered(lambda x: x.product_uom_qty > x.reserved_availability))"/>
|
t-value="any(o.move_raw_ids.filtered(lambda x: x.product_uom_qty > x.reserved_availability))"/>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
-->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user