Files
Odoo-Build/snippets/mrp.report_mrporder.modify_section_operations.xml
T

66 lines
2.2 KiB
XML

<data inherit_id="mrp.report_mrporder" priority="50">
<xpath expr="//div[@t-if='o.workorder_ids']" position="replace">
<style>
h3 {
font-size: 14pt;
font-weight: bold;
margin: 20px 0 0 10px;
}
.table {
margin: 0 0 0 10px;
width: 98%;
}
.th {
border-bottom: 1px solid rgb(220,220,220);
font-weight: bold;
padding: 10px 0 5px 0;
font-size: 11pt;
}
.tdline {
border-bottom: 1px solid rgb(220,220,220);
font-size: 10pt;
}
</style>
<h3>
<span t-if="o.state == 'done'">Operations Done</span>
<span t-else="">Operations Planned</span>
</h3>
<div t-if="o.workorder_ids" groups="mrp.group_mrp_routings">
<div>
<div class="row table th">
<div class="col-6">
<strong>Operation</strong>
</div>
<div class="col-2">
<strong>WorkCenter</strong>
</div>
<div class="col-2 text-right">
<strong>No. Of Minutes</strong>
</div>
<div class="col-1 text-center">
<strong>IST</strong>
</div>
<div class="col-1 text-center">
<strong>Vis</strong>
</div>
</div>
<div class="row table tdline" t-foreach="o.workorder_ids" t-as="line2">
<div class="col-6">
<span t-field="line2.name"/>
</div>
<div class="col-2">
<span t-field="line2.workcenter_id.name"/>
</div>
<div class="col-2 text-right">
<span t-if="o.state != 'done'" t-field="line2.duration_expected"/>
<span t-if="o.state == 'done'" t-field="line2.duration"/>
</div>
<div class="col-1"/>
<div class="col-1"/>
</div>
</div>
</div>
</xpath>
</data>