[IMP] mrp_usability: add lot on mrp production report
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
'views/mrp_production.xml',
|
||||
'views/product_template.xml',
|
||||
'views/stock_move_line.xml',
|
||||
# 'report/mrp_report.xml' # TODO
|
||||
'report/mrp_report.xml'
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
<template id="report_mrporder" inherit_id="mrp.report_mrporder">
|
||||
|
||||
<xpath expr="//table[1]//thead//th[1]" position="before">
|
||||
<th t-if="has_serial_number">Lot</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[1]//tbody//td[1]" position="before">
|
||||
<td t-if="has_serial_number"><span t-field="ml.lot_id"/></td>
|
||||
<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 > x.reserved_availability))"/>
|
||||
@@ -42,7 +42,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</xpath>
|
||||
|
||||
-->
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user