[IMP] mrp_usability: add lot on mrp production report

This commit is contained in:
Alexis de Lattre
2025-02-25 18:51:27 +01:00
parent e6d801a43a
commit 4b658203cc
2 changed files with 8 additions and 8 deletions

View File

@@ -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,
} }

View File

@@ -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 &gt; x.reserved_availability))"/> t-value="any(o.move_raw_ids.filtered(lambda x: x.product_uom_qty &gt; x.reserved_availability))"/>
@@ -42,7 +42,7 @@
</tbody> </tbody>
</table> </table>
</xpath> </xpath>
-->
</template> </template>
</odoo> </odoo>