Files
Odoo-Build/snippets/stock.report_picking.replace_order_definition.xml
T
2025-01-03 14:39:51 +01:00

80 lines
2.1 KiB
XML

<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[@name='div_origin']/.." position="replace">
<style>
table.trimada_order {
width: 100%;
font-size: 11pt;
font-family: arial;
border-color: white;
}
table.trimada_order tr {
border-bottom: 1px solid rgb(220,220,220);
}
.first_col {
width: 44%;
padding-left: 10px;
padding-top: 5px;
padding-bottom: 5px;
border-color: white;
}
.second_col {
width: 56%;
}
.last_row {
border-bottom: 0px !important;
}
</style>
<table class="trimada_order">
<tr>
<t t-if="o.picking_type_id.id == 12">
<td class="first_col">
<strong>
Fertigungsauftrag
<span t-field="o.origin"/>
</strong>
</td>
<td class="second_col">
<strong>
Produkt
<span/>
</strong>
<span t-field="o.group_id.mrp_production_ids.product_id"/>
</td>
</t>
<t t-if="o.picking_type_id.id != 12">
<td class="first_col">
<strong>
Bestellung
<span t-field="o.origin"/>
</strong>
</td>
<td/>
</t>
</tr>
<tr>
<td class="first_col">
Status:
<span t-field="o.state"/>
</td>
<td class="second_col">
Datum:
<span t-field="o.scheduled_date" t-options="{&quot;widget&quot;: &quot;date&quot;}"/>
</td>
</tr>
<tr class="last_row">
<td class="first_col">
Typ:
<span t-field="o.picking_type_id.code"/>
</td>
<t t-if="o.carrier_id">
<td>
Auslieferungsmethode:
<span t-field="o.carrier_id"/>
</td>
</t>
</tr>
</table>
</xpath>
</data>