Stock
Label Transfer Template View
Basis57
ID: mint_system.stock.label_transfer_template_view.basis57
<t t-name="stock.label_transfer_template_view.basis57">
<t t-call="web.basic_layout">
<style>
.external-ref {
font-size: 14mm;
}
.box.external-ref {
font-size: 20mm;
}
.title {
font-size: 12mm;
}
.address {
font-size: 10mm;
}
.box.address {
font-size: 14mm;
font-weight: bolder;
}
.barcode {
font-size: 6mm;
}
.default {
font-size: 7mm;
}
.bolder {
font-size: 7mm;
font-weight: bolder;
}
.footer {
font-size: 7mm;
}
div.label {
line-height: 1.2;
text-align: center;
}
br {
font-size: 2mm;
}
.space-right {
margin-right: 2mm
}
.space-left {
margin-left: 2mm
}
.address-space-right {
padding-right: 3mm
}
svg {
position: absolute;
left: 10px;
margin-top: 10px
}
</style>
<t t-foreach="docs" t-as="picking">
<t t-foreach="picking.move_lines.filtered(lambda m: m.quantity_done > 0 and m.product_packaging)" t-as="move">
<!--Set default values-->
<t t-set="count_boxes" t-value="0" />
<t t-set="count_labels" t-value="0" />
<t t-set="temperature" t-value="2" />
<t t-set="today" t-value="context_timestamp(datetime.datetime.now())" />
<t t-set="packaging" t-value="move.product_packaging" />
<t t-set="external_ref" t-value="picking.partner_id.x_external_ref" />
<t t-set="print_header" t-value="True" />
<t t-set="print_delivery_date" t-value="False" />
<t t-set="print_delivery_date_only" t-value="False" />
<t t-set="barcode" t-value="packaging.barcode" />
<t t-set="qty_description" t-value="packaging.x_qty_description" />
<!--Print delivery date if shipping method is Bordereau-->
<t t-if="picking.carrier_id.name == 'Bordereau'">
<t t-set="print_delivery_date" t-value="True" />
</t>
<!--Calculate default expiration date-->
<t t-set="delta" t-value="datetime.timedelta(days=move.product_id.x_expiration_days)" />
<t t-set="consume_until" t-value="today + delta" />
<!--Print report for each move line-->
<t t-set="move_lines" t-value="move.move_line_ids.filtered(lambda l: l.qty_done > 0)" />
<t t-foreach="move_lines" t-as="move_line">
<t t-set="count_labels" t-value="move_line.qty_done/(packaging.qty or 1.0)" />
<t t-if="packaging.name == 'Kiste'">
<t t-set="print_weight" t-value="True" />
</t>
<!--Compute box count-->
<t t-if="count_boxes == 0">
<t t-set="count_boxes" t-value="int(((move_line.qty_done + 0.1) / move.quantity_done) * move.x_count_boxes)" />
</t>
<t t-if="packaging.x_print_without_parent" t-set="count_boxes" t-value="0" />
<t t-set="count_pages" t-value="int(count_labels + count_boxes)" />
<t t-if="packaging.x_print_parent_only" t-set="count_pages" t-value="int(count_boxes)" />
<!--<span>count_boxes:</span><span t-esc="count_boxes" />-->
<!--<span>qty_done:</span><span t-esc="move_line.qty_done" />-->
<!--<span>quantity_done:</span><span t-esc="move.quantity_done" />-->
<!--<span>x_count_boxes:</span><span t-esc="move.x_count_boxes" />-->
<!--<span>count_labels:</span><span t-esc="count_labels" />-->
<!--<span>count_pages:</span><span t-esc="count_pages" />-->
<!--<br/>-->
<!--Print report for each label and box count-->
<t t-foreach="range(0, count_pages)" t-as="page">
<!--Caclulate expiration date from settings-->
<t t-if="move.product_id.use_expiration_date">
<t t-set="delta" t-value="datetime.timedelta(days=move.product_id.expiration_time)" />
<t t-set="consume_until" t-value="context_timestamp(move_line.lot_id.removal_date)" />
<t t-set="today" t-value="consume_until - delta" />
</t>
<!--First print normal labels and then box labels-->
<t t-if="page_index >= (count_pages - count_boxes)">
<t t-set="qty_description"></t>
<t t-if="external_ref">
<t t-set="print_header" t-value="False" />
<t t-set="print_delivery_date_only" t-value="True" />
</t>
<t t-if="packaging.parent_packaging">
<t t-if="packaging.parent_packaging.barcode" t-set="barcode" t-value="packaging.parent_packaging.barcode" />
<t t-set="qty_description" t-value="packaging.parent_packaging.x_qty_description" />
</t>
</t>
<div class="page">
<div class="label">
<t t-if="picking.partner_id.hide_address or not print_header">
<br />
<br />
</t>
<br />
<br />
<t t-if="print_header">
<t t-if="picking.partner_id.x_packaging_ref">
<span class="text-uppercase use-font-opensans-medium title space-right" t-esc="picking.partner_id.x_packaging_ref" />
</t>
<span class="text-uppercase use-font-opensans-medium title">Gotthard-Zander</span>
<br />
<span class="text-uppercase use-font-opensans-bold title" t-esc="move.product_id.name" />
<t t-if="move.product_id.x_calibre">
<span class="use-font-opensans-medium default space-left" t-esc="move.product_id.x_calibre" />
</t>
<br />
<span class="use-font-opensans-medium default">(Sander lucioperca) in Aquakultur gewonnen</span>
<br />
<t t-if="qty_description or print_weight">
<span class="use-font-opensans-medium default">Gewicht: </span>
<span class="use-font-opensans-medium default" t-if="not print_weight" t-esc="qty_description" />
<span class="use-font-opensans-medium default" t-if="print_weight" t-esc="move.quantity_done *1000" t-options='{"widget": "float", "precision": 0}' />
<span class="use-font-opensans-medium default" t-if="print_weight">
g zu
<span t-esc="move.x_count_boxes" />
Kisten
</span>
</t>
</t>
<br />
<t t-if="print_delivery_date and not print_delivery_date_only">
<span class="use-font-opensans-medium bolder">Lieferdatum: </span>
<span class="use-font-opensans-medium bolder" t-esc="picking.scheduled_date.strftime('%d.%m.%Y')" />
<br />
</t>
<br />
<t t-if="not picking.partner_id.hide_address">
<div id="address">
<t t-if="external_ref and print_header">
<span class="use-font-opensans-bold external-ref" t-esc="external_ref" />
<br />
<span class="use-font-opensans-bold address" t-field="picking.partner_id.name" />
<br />
<span class="use-font-opensans-bold address address-space-right" t-field="picking.partner_id.zip" />
<span class="use-font-opensans-bold address" t-field="picking.partner_id.city" />
<br />
<br />
</t>
<t t-if="external_ref and not print_header">
<span class="use-font-opensans-bold box external-ref" t-esc="external_ref" />
<br />
<span class="use-font-opensans-bold box address" t-field="picking.partner_id.name" />
<br />
<span class="use-font-opensans-bold box address address-space-right" t-field="picking.partner_id.zip" />
<span class="use-font-opensans-bold box address" t-field="picking.partner_id.city" />
<br />
<br />
</t>
<t t-if="not external_ref and print_header">
<span class="use-font-opensans-bold address" t-field="picking.partner_id.name" />
<br />
<span class="use-font-opensans-bold address address-space-right" t-field="picking.partner_id.zip" />
<span class="use-font-opensans-bold address" t-field="picking.partner_id.city" />
<br />
<br />
</t>
</div>
</t>
<t t-if="not print_delivery_date_only">
<span class="use-font-opensans-medium default">Verpackt am: </span>
<span class="use-font-opensans-medium default" t-esc="today.strftime('%d.%m.%Y')" />
<br />
<span class="use-font-opensans-medium default">Zu verbrauchen bis: </span>
<span class="use-font-opensans-medium default" t-esc="consume_until.strftime('%d.%m.%Y')" />
<br />
<span class="use-font-opensans-medium default">
Aufbewahrung: bei
<span t-esc="move.product_id.x_storage_temperature" />
°C
</span>
</t>
<t t-if="print_delivery_date_only">
<span class="use-font-opensans-medium address">Lieferdatum: </span>
<span class="use-font-opensans-medium address" t-esc="picking.scheduled_date.strftime('%d.%m.%Y')" />
<br />
</t>
<br />
<br />
<t t-if="move_line.lot_id.name">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', barcode, 600, 50)" alt="Barcode" />
<br />
<span class="use-font-opensans-medium barcode" t-esc="'%s %s %s' % (barcode[0], barcode[1:8], barcode[8:])" />
</t>
<t t-else="">
<span class="use-font-opensans-medium default text-muted">No barcode available</span>
</t>
<br />
<br />
<span class="text-uppercase use-font-opensans-bold default">Gotthard-Zander</span>
<span class="use-font-opensans-bold default"> by Basis57</span>
<br />
<br />
<span class="use-font-opensans-medium footer" t-field="res_company.street" />
<span class="use-font-opensans-medium footer space-right">,</span>
<span class="use-font-opensans-medium footer space-right" t-field="res_company.zip" />
<span class="use-font-opensans-medium footer" t-field="res_company.city" />
<br />
<span class="use-font-opensans-medium footer">www.gotthard-zander.ch</span>
<svg viewBox="0 0 150 100" width="150" height="100">
<ellipse style="stroke: rgb(0, 0, 0); fill: none; stroke-width: 4px;" cx="75" cy="49.556" rx="70" ry="45" data-bx-origin="-1.166667 -2"></ellipse>
<text style="fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; text-anchor: middle; white-space: pre;" data-bx-origin="-1.600941 -3.727571" transform="matrix(1.475051, 0, 0, 1.713593, -78.134323, -123.083534)"><tspan x="102.8" y="96.183">CH</tspan><tspan x="102.8" dy="1em">​</tspan><tspan>71758556</tspan></text>
</svg>
</div>
<p style="page-break-before:always;" />
</div>
</t>
</t>
</t>
</t>
</t>
</t>
Source: snippets/stock.label_transfer_template_view.basis57.xml
Trimada
ID: mint_system.stock.label_transfer_template_view.trimada
<t t-name="stock.label_transfer_template_view.trimada">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="picking">
<t t-foreach="picking.move_lines" t-as="move">
<style>
.label {
font-family: arial;
}
.box {
margin: 0mm 0 2mm 0;
}
.box1 {
margin: 9mm 0 2mm 0;
}
.box2 {
margin: 7mm 0 2mm 0;
}
.box3 {
margin: 2mm 0 2mm 0;
}
.padding {
padding-bottom: 3mm;
}
.title {
font-size: 11mm;
margin: 3mm 3mm 0 3mm;
font-weight: bold;
text-align: center;
border-bottom: solid 1px;
line-height: 1;
}
.frame {
border-bottom: solid 1px;
margin: 0 3mm 0 3mm;
}
.description {
font-size: 7mm;
height: 23mm;
width: 98%;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
}
.delivery {
font-size: 6mm;
margin: 3mm 3mm 0 3mm;
text-align: left;
border-bottom: solid 1px;
line-height: 1;
height: 35mm;
}
.comment {
font-size: 5mm;
text-align: center;
height: 8mm;
line-height: 10mm;
}
.col-6 {
padding-right: 0;
padding-left: 0;
}
</style>
<div class="page">
<div class="label">
<div class="row title">
<div class="col-6 box2">
<span t-esc="move.product_id.default_code"/>
</div>
<div t-if="move.product_id.barcode" class="col-6 box2 text-right">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', move.product_id.barcode, 250, 85)" alt="Barcode"/>
</div>
</div>
<div class="frame">
<div class="description">
<span t-esc="move.product_id.name"/>
</div>
<div class="description">
<span t-esc="move.product_id.type_description"/>
</div>
</div>
<div class="row delivery">
<div class="col-6 box">
<div class="padding">
<span t-esc="move.date" t-options="{'widget': 'date'}"/>
</div>
<div class="padding">
<span t-esc="move.origin"/>
</div>
</div>
<div class="col-6 box3">
<div t-if="move.product_id.feeder_id" class="text-right">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', move.product_id.feeder_id, 250, 80)" alt="Barcode"/>
<br/>
</div>
<div class="text-center">
<span class="text-center" t-esc="move.product_id.feeder_id"></span>
</div>
</div>
</div>
<div class="comment">
<span>Trimada AG, CH-5610 Wohlen – www.trimada.ch</span>
</div>
</div>
</div>
<p style="page-break-before:always;" />
</t>
</t>
</t>
</t>
Source: snippets/stock.label_transfer_template_view.trimada.xml
Product Template Search Form View Stock
Hide Location Id
ID: mint_system.stock.product_template_search_form_view_stock.hide_location_id
<?xml version="1.0"?>
<data inherit_id="stock.product_template_search_form_view_stock" priority="50">
<xpath expr="//field[@name='location_id']" position="replace">
</xpath>
</data>
Source: snippets/stock.product_template_search_form_view_stock.hide_location_id.xml
Hide Pricelist Id
ID: mint_system.stock.product_template_search_form_view_stock.hide_pricelist_id
<?xml version="1.0"?>
<data inherit_id="stock.product_template_search_form_view_stock" priority="50">
<xpath expr="//field[@name='pricelist_id']" position="replace">
</xpath>
</data>
Source: snippets/stock.product_template_search_form_view_stock.hide_pricelist_id.xml
Hide Warehouse Id
ID: mint_system.stock.product_template_search_form_view_stock.hide_warehouse_id
<?xml version="1.0"?>
<data inherit_id="stock.product_template_search_form_view_stock" priority="50">
<xpath expr="//field[@name='warehouse_id']" position="replace">
</xpath>
</data>
Source: snippets/stock.product_template_search_form_view_stock.hide_warehouse_id.xml
Report Bordero
Basis57
ID: mint_system.stock.report_bordero.basis57
<t t-name="stock.report_bordero.basis57">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<h2>Bordereau</h2>
<p>Lieferdatum: <span t-esc="context_timestamp(docs[0].scheduled_date).strftime('%Y-%m-%d')"/>
</p>
<table class="table table-sm">
<thead>
<tr>
<th>Kunde</th>
<th>Strasse</th>
<th>PLZ</th>
<th>Ort</th>
<th class="text-right">Gebinde</th>
<th class="text-right">Total Gewicht</th>
</tr>
</thead>
<tbody>
<t t-set="total_boxes" t-value="0"/>
<t t-set="total_weight" t-value="0"/>
<tr t-foreach="set([picking.partner_id for picking in docs.move_ids_without_package])" t-as="partner_id">
<t t-set="partner_moves" t-value="docs.move_ids_without_package.filtered(lambda x: x.partner_id == partner_id)"/>
<t t-set="count_boxes" t-value="sum(partner_moves.filtered(lambda m: m.product_id.x_storage_temperature > -20).mapped('x_count_boxes'))"/>
<t t-set="count_cold_storage_boxes" t-value="sum(partner_moves.filtered(lambda m: m.product_id.x_storage_temperature < -20).mapped('x_count_boxes'))"/>
<t t-set="boxes_weight" t-value="sum(partner_moves.mapped('weight'))"/>
<t t-set="total_boxes" t-value="total_boxes + count_boxes + count_cold_storage_boxes"/>
<t t-set="total_weight" t-value="total_weight + boxes_weight"/>
<td>
<span t-field="partner_id.name"/>
</td>
<td>
<span t-field="partner_id.street"/>
</td>
<td>
<span t-field="partner_id.zip"/>
</td>
<td>
<span t-field="partner_id.city"/>
</td>
<td class="text-right">
<t t-if="count_boxes > 0">
<span><span t-esc="count_boxes"/> Frisch</span>
</t>
<t t-if="count_cold_storage_boxes > 0">
<span><span t-esc="count_cold_storage_boxes"/> TK</span>
</t>
</td>
<td class="text-right">
<span t-esc="round(boxes_weight,2)"/>
<span> kg</span>
</td>
</tr>
</tbody>
</table>
<div class="clearfix">
<div id="total" class="row">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ml-auto">
<table class="table table-sm" style="page-break-inside: avoid;">
<tr class="border-black o_total">
<td>
<strong>Total</strong>
</td>
<td class="text-right">
<span t-esc="total_boxes"/>
<span> Gebinde</span>
</td>
<td class="text-right">
<span t-esc="round(total_weight,2)"/>
<span> kg</span>
</td>
</tr>
</table>
</div>
</div>
</div>
<br/>
<t t-set="footer" t-value="docs.env['ir.translation'].search([('src', '=', 'stock.report_bordero.basis57.footer')], limit=1)"/>
<t t-if="footer">
<p><t t-raw="footer.value"/></p>
</t>
</div>
</t>
</t>
</t>
Source: snippets/stock.report_bordero.basis57.xml
Report Certificatecofc Simplified
Tissa
ID: mint_system.stock.report_certificatecofc_simplified.tissa
<?xml version="1.0"?>
<t t-name="stock.report_certificatecofc.tissa">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="o">
<style>
table {
width: 100%;
margin-bottom: 25px;
font-size: 11pt;
font-family: arial;
}
table th {
padding: 0 5px 0 5px;
}
table td {
padding: 0 5px 0 5px;
}
table#title {
background-color: rgb(216,216,216);
}
.table_info {
border: solid 1px;
}
table#workorder {
border: solid 1px;
}
table#quality {
border: solid 1px;
}
table#tracing {
border: solid 1px;
}
h2 {
font-size: 16pt;
font-weight: bold;
margin-top: 10mm;
margin-bottom: 10mm;
text-align: center;
}
div#subtitle {
font-size: 11pt;
font-family: arial;
}
</style>
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<h2>
<span>Werkszeugnis nach EN 10 204-3.1 für Glasgewebe</span>
</h2>
<table id='title'>
<tr>
<td width="50%">Hersteller:</td>
<td>
<span t-field="o.company_id.name"/>
, <span t-field="o.company_id.country_id.code"/>
- <span t-field="o.company_id.zip"/>
<span t-field="o.company_id.city"/>
</td>
</tr>
</table>
<table class="table_info">
<tr>
<td width="50%">Hersteller Bezeichnung:</td>
<td width="50%">
<span t-field="o.product_id.categ_id"/>
</td>
</tr>
<tr style="border-bottom: solid 1px">
<td>Artikelnr.</td>
<td width="50%">
<span t-field="o.product_id.name"/>
</td>
</tr>
<tr>
<td>Liefermenge:</td>
<td>
<span t-field="o.move_lines[0].quantity_done"/>
<span t-field="o.move_lines[0].product_uom"/>
</td>
</tr>
<tr>
<td>Lieferdatum:</td>
<td>
<span t-field="o.date_done" t-options='{"widget": "date"}'/>
</td>
</tr>
<tr style="border-bottom: solid 1px">
<td>Lieferschein-/Auftragsnummer:</td>
<td>
<span t-field="o.name"/>
/
<span t-field="o.origin"/>
<t t-if="o.move_line_ids[0].lot_id.x_production_ids[0].move_raw_ids[0].move_line_ids[0].lot_id.x_production_id">
/ <span t-field="o.move_line_ids[0].lot_id.x_production_ids[0].move_raw_ids[0].move_line_ids[0].lot_id.x_production_id"/>
</t>
</td>
</tr>
<tr>
<td>Kunde / Fax:</td>
<td>
<span t-field="o.partner_id"/>
</td>
</tr>
<tr style="border-bottom: solid 1px">
<td></td>
<td>
<span t-field="o.partner_id.mobile"/>
</td>
</tr>
<tr>
<td>Bestellnummer:</td>
<td>
<span t-field="o.x_studio_kundenreferenz"/>
</td>
</tr>
<tr>
<td>Kunden Artikelbezeichnung:</td>
<td>
<span t-field="o.product_id.x_studio_kundenartikelnr"/>
</td>
</tr>
<tr>
<td></td>
<td>
<span t-field="o.product_id.description_sale"/>
</td>
</tr>
<table class="table_info">
<tr>
<td width="50%">Gewebebindung:</td>
<td width="50%">
<span t-field="o.product_id.x_studio_bindung_1"/>
</td>
</tr>
</table>
</table>
<table id='workorder'>
<tr>
<th width="50%">Liefermenge</th>
<th width="50%">Chargennummer</th>
</tr>
<tr>
<t t-set="lines" t-value="o.move_line_ids"/>
<tr t-foreach="lines" t-as="move_line">
<td width="25%">
<span t-field="move_line.qty_done"/>
</td>
<td width="75%">
<span t-field="move_line.lot_id"/>
</td>
</tr>
</tr>
</table>
<t t-set="products" t-value="list(set([line.product_id for line in o.move_line_ids.lot_id.x_production_ids.move_raw_ids.move_line_ids.lot_id.x_production_ids.traceability_line_ids]))" />
<table id='tracing'>
<tr>
<th width="45%">Ressource</th>
<th width="10%">Tex</th>
<th width="10%">Rohmat.</th>
<th width="10%">Filament</th>
<th width="10%">Drehung</th>
<th width="15%">Schlichte</th>
</tr>
<t t-foreach="products" t-as="product_line">
<t t-if="product_line.product_tmpl_id.categ_id.x_relevant_for_certificate == true">
<tr>
<td>
<span t-field="product_line.name"/>
</td>
<td>
<span t-field="product_line.x_studio_tex_2"/>
</td>
<td>
<span t-field="product_line.x_studio_rohmaterialtyp"/>
</td>
<td>
<span t-field="product_line.x_studio_filament"/>
</td>
<td>
<span t-field="product_line.x_studio_drehung"/>
</td>
<td>
<span t-field="product_line.product_template_attribute_value_ids.name"/>
</td>
</tr>
</t>
</t>
<tr>
<td colspan="6"></td>
</tr>
</table>
<t t-set="qualitycheck_line" t-value="o.move_line_ids[0].lot_id.x_production_ids[0].move_raw_ids.move_line_ids[0].lot_id.x_production_ids[0].x_quality_check_ids[0]"/>
<div id="subtitle">
Qualitätsprüfung <span t-field="qualitycheck_line.name"/>
</div>
<table id="quality">
<tr>
<th width="50%"></th>
<th width="25%">Sollwert</th>
<th width="25%">Istwert</th>
</tr>
<t t-if="qualitycheck_line.x_studio_kette_1_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 1:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_1_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_1_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_kette_2_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 2:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_2_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_2_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_kette_3_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 3:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_3_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_3_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_kette_4_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 4:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_4_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_4_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_schuss_1_fdcm > 0">
<tr>
<td>Fadendichte per cm Schuss 1:</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_1_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_1_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_schuss_2_fdcm > 0">
<tr>
<td>Fadendichte per cm Schuss 2:</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_2_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_2_fdcm"/>
</td>
</tr>
</t>
<tr>
<td>Gewebebreite in mm:</td>
<td>
<span t-field="qualitycheck_line.x_studio_breite_von_mm"/>
<span> - </span>
<span t-field="qualitycheck_line.x_studio_breite_bis_mm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_breite_ist_mm"/>
</td>
</tr>
<tr>
<td>Flächengewicht gr per m2:</td>
<td>
<span t-field="qualitycheck_line.x_studio_gewicht_von_gm2"/>
<span> - </span>
<span t-field="qualitycheck_line.x_studio_gewicht_bis_gm2"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_gewicht_ist_gm2"/>
</td>
</tr>
</table>
<table>
<tr>
<td>
Unterschrift
<br></br>
<br></br>
</td>
</tr>
<tr>
<td>
Der Hersteller bescheinigt, dass das Glasgewebe den obigen Angaben entspricht.<br></br>
Mit freundlichen Grüssen
Tissa Glasweberei AG
</td>
</tr>
</table>
</div>
</t>
</t>
</t>
</t>
Source: snippets/stock.report_certificatecofc_simplified.tissa.xml
Report Certificatecofc
Tissa
ID: mint_system.stock.report_certificatecofc.tissa
<?xml version="1.0"?>
<t t-name="stock.report_certificatecofc.tissa">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="o">
<style>
table {
width: 100%;
margin-bottom: 25px;
font-size: 11pt;
font-family: arial;
}
table th {
padding: 0 5px 0 5px;
}
table td {
padding: 0 5px 0 5px;
}
table#title {
background-color: rgb(216,216,216);
}
.table_info {
border: solid 1px;
}
table#workorder {
border: solid 1px;
}
table#quality {
border: solid 1px;
}
table#tracing {
border: solid 1px;
}
h2 {
font-size: 16pt;
font-weight: bold;
margin-top: 10mm;
margin-bottom: 10mm;
text-align: center;
}
div#subtitle {
font-size: 11pt;
font-family: arial;
}
</style>
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<h2>
<span>Werkszeugnis nach EN 10 204-3.1 für Glasgewebe</span>
</h2>
<table id='title'>
<tr>
<td width="50%">Hersteller:</td>
<td>
<span t-field="o.company_id.name"/>
, <span t-field="o.company_id.country_id.code"/>
- <span t-field="o.company_id.zip"/>
<span t-field="o.company_id.city"/>
</td>
</tr>
</table>
<table class="table_info">
<tr>
<td width="50%">Hersteller Bezeichnung:</td>
<td width="50%">
<span t-field="o.product_id.categ_id"/>
</td>
</tr>
<tr style="border-bottom: solid 1px">
<td>Artikelnr.</td>
<td width="50%">
<span t-field="o.product_id.name"/>
</td>
</tr>
<tr>
<td>Liefermenge:</td>
<td>
<span t-field="o.move_lines[0].quantity_done"/>
<span t-field="o.move_lines[0].product_uom"/>
</td>
</tr>
<tr>
<td>Lieferdatum:</td>
<td>
<span t-field="o.date_done" t-options='{"widget": "date"}'/>
</td>
</tr>
<tr style="border-bottom: solid 1px">
<td>Lieferschein-/Auftragsnummer:</td>
<td>
<span t-field="o.name"/>
/
<span t-field="o.origin"/>
<t t-if="o.move_line_ids[0].lot_id.x_production_ids[0].move_raw_ids[0].move_line_ids[0].lot_id.x_production_id">
/ <span t-field="o.move_line_ids[0].lot_id.x_production_ids[0].move_raw_ids[0].move_line_ids[0].lot_id.x_production_id"/>
</t>
</td>
</tr>
<tr>
<td>Kunde / Fax:</td>
<td>
<span t-field="o.partner_id"/>
</td>
</tr>
<tr style="border-bottom: solid 1px">
<td></td>
<td>
<span t-field="o.partner_id.mobile"/>
</td>
</tr>
<tr>
<td>Bestellnummer:</td>
<td>
<span t-field="o.x_studio_kundenreferenz"/>
</td>
</tr>
<tr>
<td>Kunden Artikelbezeichnung:</td>
<td>
<span t-field="o.product_id.x_studio_kundenartikelnr"/>
</td>
</tr>
<tr>
<td></td>
<td>
<span t-field="o.product_id.description_sale"/>
</td>
</tr>
<table class="table_info">
<tr>
<td width="50%">Gewebebindung:</td>
<td width="50%">
<span t-field="o.product_id.x_studio_bindung_1"/>
</td>
</tr>
</table>
</table>
<table id='workorder'>
<tr>
<th width="50%">Liefermenge</th>
<th width="50%">Chargennummer</th>
</tr>
<tr>
<t t-set="lines" t-value="o.move_line_ids"/>
<tr t-foreach="lines" t-as="move_line">
<td width="25%">
<span t-field="move_line.qty_done"/>
</td>
<td width="75%">
<span t-field="move_line.lot_id"/>
</td>
</tr>
</tr>
</table>
<t t-set="products" t-value="list(set([line.product_id for line in o.move_line_ids.lot_id.x_production_ids.move_raw_ids.move_line_ids.lot_id.x_production_ids.traceability_line_ids]))" />
<table id='tracing'>
<tr>
<th width="25%">Ressource</th>
<th width="10%">Tex</th>
<th width="10%">Rohmat.</th>
<th width="10%">Filament</th>
<th width="10%">Drehung</th>
<th width="15%">Schlichte</th>
<th width="20%">Los</th>
</tr>
<t t-foreach="products" t-as="product_line">
<t t-set="lots_seen" t-value="[]" />
<t t-set="move_lines" t-value="o.move_line_ids.lot_id.x_production_ids.move_raw_ids.move_line_ids.lot_id.x_production_ids.traceability_line_ids.filtered(lambda l: product_line.id == l.product_id.id)"/>
<tr t-foreach="move_lines" t-as="move_line">
<t t-if="move_line.lot_id not in lots_seen">
<t t-esc="lots_seen.append(move_line.lot_id)"/>
<t t-if="move_line.product_id.product_tmpl_id.categ_id.x_relevant_for_certificate == true">
<td>
<span t-field="move_line.product_id"/>
</td>
<td>
<span t-field="move_line.product_id.product_tmpl_id.x_studio_tex_2"/>
</td>
<td>
<span t-field="move_line.product_id.product_tmpl_id.x_studio_rohmaterialtyp"/>
</td>
<td>
<span t-field="move_line.product_id.product_tmpl_id.x_studio_filament"/>
</td>
<td>
<span t-field="move_line.product_id.product_tmpl_id.x_studio_drehung"/>
</td>
<td>
<span t-field="move_line.product_id.product_template_attribute_value_ids.name"/>
</td>
<td>
<span t-field="move_line.lot_id"/>
</td>
</t>
</t>
</tr>
</t>
<tr>
<td colspan="7"></td>
</tr>
</table>
<t t-set="qualitycheck_line" t-value="o.move_line_ids[0].lot_id.x_production_ids[0].move_raw_ids[0].move_line_ids[0].lot_id.x_production_ids[0].x_quality_check_ids[0]"/>
<div id="subtitle">
Qualitätsprüfung <span t-field="qualitycheck_line.name"/>
</div>
<table id="quality">
<tr>
<th width="50%"></th>
<th width="25%">Sollwert</th>
<th width="25%">Istwert</th>
</tr>
<t t-if="qualitycheck_line.x_studio_kette_1_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 1:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_1_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_1_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_kette_2_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 2:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_2_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_2_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_kette_3_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 3:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_3_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_3_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_kette_4_fdcm > 0">
<tr>
<td>Fadendichte per cm Kette 4:</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_4_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_kette_4_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_schuss_1_fdcm > 0">
<tr>
<td>Fadendichte per cm Schuss 1:</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_1_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_1_fdcm"/>
</td>
</tr>
</t>
<t t-if="qualitycheck_line.x_studio_schuss_2_fdcm > 0">
<tr>
<td>Fadendichte per cm Schuss 2:</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_2_fdcm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_schuss_2_fdcm"/>
</td>
</tr>
</t>
<tr>
<td>Gewebebreite in mm:</td>
<td>
<span t-field="qualitycheck_line.x_studio_breite_von_mm"/>
<span> - </span>
<span t-field="qualitycheck_line.x_studio_breite_bis_mm"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_breite_ist_mm"/>
</td>
</tr>
<tr>
<td>Flächengewicht gr per m2:</td>
<td>
<span t-field="qualitycheck_line.x_studio_gewicht_von_gm2"/>
<span> - </span>
<span t-field="qualitycheck_line.x_studio_gewicht_bis_gm2"/>
</td>
<td>
<span t-field="qualitycheck_line.x_studio_gewicht_ist_gm2"/>
</td>
</tr>
</table>
<table>
<tr>
<td>
Unterschrift
<br></br>
<br></br>
</td>
</tr>
<tr>
<td>
Der Hersteller bescheinigt, dass das Glasgewebe den obigen Angaben entspricht.<br></br>
Mit freundlichen Grüssen
Tissa Glasweberei AG
</td>
</tr>
</table>
</div>
</t>
</t>
</t>
</t>
Source: snippets/stock.report_certificatecofc.tissa.xml
Report Delivery Document
Add Date
ID: mint_system.stock.report_delivery_document.add_date
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//th[@name='th_sm_product']" position="after">
<th>
<strong>Lieferdatum</strong>
</th>
</xpath>
<xpath expr="//span[@t-field='move.product_id']" position="after">
<td>
<span t-field="move.date" t-options='{"widget": "date"}'/>
</td>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.add_date.xml
Add Header And Footer Note
ID: mint_system.stock.report_delivery_document.add_header_and_footer_note
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@id='infotable']" position="after">
<t t-if="o.note_header != '<p><br></p>'">
<span class="note" t-field="o.note_header"/>
</t>
</xpath>
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<t t-if="o.note_footer != '<p><br></p>'">
<span class="note" t-field="o.note_footer"/>
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.add_header_and_footer_note.xml
Add Incoterms
ID: mint_system.stock.report_delivery_document.add_incoterms
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[1]/div[1]/div[2]" position="after">
<div class="col-auto" name="div_incoterms">
<strong>Incoterms:</strong>
<t>
<p t-field="res_company.incoterm_id.code"/>
</t>
</div>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.add_incoterms.xml
Add Infotable
ID: mint_system.stock.report_delivery_document.add_infotable
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//h2" position="after">
<style>
.info_table tbody tr td:first-of-type {
text-align: left;
width: 5mm;
}
.note {
font-size: 9pt;
}
</style>
<table id="infotable" class="info_table" style="width:100%; margin-bottom:25px; padding-left:0px; font-size:9pt; font-family:arial; color:black;">
<tr style="line-height: 1.2">
<td style="width:25mm;">Date</td>
<td style="width:85mm;">
<span t-field='o.date_done' t-options='{ "widget": "date" }'/>
</td>
<td style="width:25mm;">Order No.</td>
<td style="width:45mm;">
<span t-field='o.origin'/>
</td>
</tr>
<tr style="line-height: 1.2">
<td>Customer No.</td>
<td>
<span t-field='o.sale_id.partner_id.ref'/>
</td>
<td>Our Reference</td>
<td>
<span t-field='o.user_id'/>
</td>
</tr>
<tr style="line-height: 1.2">
<td>Order</td>
<td>
<span t-field="o.sale_id.client_order_ref"/>
</td>
<td>Delivery Method</td>
<td>
<span t-field='o.carrier_id'/>
</td>
</tr>
<tr style="line-height: 1.2">
<td>Reference</td>
<td>
<span t-field="o.sale_id.comment"/>
</td>
<td>Incoterm</td>
<td>
<span t-field="o.sale_id.incoterm"/>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.add_infotable.xml
Add Open Quantity In Backorder
ID: mint_system.stock.report_delivery_document.add_open_quantity_in_backorder
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[2]" position="after">
<th>
<strong>Open Quantity</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/tbody//td[3]" position="after">
<th>
</th>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.add_open_quantity_in_backorder.xml
Append Signature Text
ID: mint_system.stock.report_delivery_document.append_signature_text
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<div class="row" style="margin-top: 3rem;">
<div class="col-5">
<p>Gebinde geliefert: _____</p>
<p>Gebinde zurück: _____</p>
<br/>
<p>Unterschrift Transport: _______________</p>
</div>
<div class="col-2" />
<div class="col-5">
<p>Produkte einwandfrei erhalten.</p>
<br/>
<p>Unterschrift Kunde: _______________</p>
</div>
</div>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.append_signature_text.xml
Backorder Signature Section
ID: mint_system.stock.report_delivery_document.backorder_signature_section
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<p>Retouren:<br/><br/>
KEG: ___________ Anzahl<br/><br/>
Harassen: ___________ Anzahl<br/><br/>
Waren erhalten: Datum: ______________________ Unterschrift: _________________________________
</p>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.backorder_signature_section.xml
Barcode Customer Reference
ID: mint_system.stock.report_delivery_document.barcode_customer_reference
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//t[@name='partner_header']" position="before">
<span t-field="o.sale_id.client_order_ref" t-options='{"widget": "barcode", "width": 350, "height": 50}' />
</xpath>
</data>
Source: snippets/stock.report_delivery_document.barcode_customer_reference.xml
Description Sale
ID: mint_system.stock.report_delivery_document.description_sale
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.product_id.description_sale">
<span t-field="move.product_id.description_sale"/>
</t>
<t t-else="">
<span t-field="move.product_id"/>
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.description_sale.xml
Disable Stock Move Line Table
ID: mint_system.stock.report_delivery_document.disable_stock_move_line_table
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<table name="stock_move_table" position="attributes">
<attribute name="t-if"></attribute>
</table>
<table name="stock_move_line_table" position="attributes">
<attribute name="t-if">False</attribute>
</table>
</data>
Source: snippets/stock.report_delivery_document.disable_stock_move_line_table.xml
Filter Qty Done
ID: mint_system.stock.report_delivery_document.filter_qty_done
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/tbody/t" position="after">
<t t-set="lines" t-value="lines.filtered(lambda l: l.quantity_done > 0)"/>
</xpath>
<xpath expr="//t[@name='no_package_move_lines']" position="before">
<t t-set="move_lines" t-value="move_lines.filtered(lambda l: l.qty_done > 0)"/>
</xpath>
<xpath expr="//t[@t-set='package_move_lines']" position="after">
<t t-set="package_move_lines" t-value="package_move_lines.filtered(lambda l: l.qty_done > 0)"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.filter_qty_done.xml
Format Address Blocks
ID: mint_system.stock.report_delivery_document.format_address_blocks
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//t[@t-set='address']/div" position="attributes">
<attribute name="style">font-size:10pt; line-height: 1.2; padding-bottom:33mm</attribute>
<attribute name="t-options-fields">['address', 'name']</attribute>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.format_address_blocks.xml
Format Date Short
ID: mint_system.stock.report_delivery_document.format_date_short
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//p[@t-field='o.date_done']" position="attributes">
<attribute name="t-options-widget">"date"</attribute>
</xpath>
<xpath expr="//p[@t-field='o.scheduled_date']" position="attributes">
<attribute name="t-options-widget">"date"</attribute>
</xpath>
<xpath expr="//div[1]/div[1]/div[2]/t[1]/p[1]" position="attributes">
<attribute name="t-options-widget">"date"</attribute>
</xpath>
<xpath expr="//div[1]/div[1]/div[2]/t[2]/p[1]" position="attributes">
<attribute name="t-options-widget">"date"</attribute>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.format_date_short.xml
Format Main Table
ID: mint_system.stock.report_delivery_document.format_main_table
<?xml version="1.0"?>
<!-- Change style of first column -->
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table" position="attributes">
<attribute name="class" add="mint-system" separator=" " />
</xpath>
<xpath expr="//div[hasclass('page')]" position="inside">
<style>
table.mint-system tbody tr td:first-of-type {
text-align: right;
width: 5mm;
}
</style>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.format_main_table.xml
Format Pos
ID: mint_system.stock.report_delivery_document.format_pos
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_backorder_table']/tbody//td" position="attributes">
<attribute name="style">text-align: right; width: 5mm</attribute>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.format_pos.xml
Format Qty
ID: mint_system.stock.report_delivery_document.format_qty
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<span id="open_qty" position="attributes">
<attribute name="t-options-widget">"integer"</attribute>
</span>
<span id="qty" position="attributes">
<attribute name="t-options-widget">"integer"</attribute>
</span>
</data>
Source: snippets/stock.report_delivery_document.format_qty.xml
Format Title Trimada
ID: mint_system.stock.report_delivery_document.format_title_trimada
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//h2" position="attributes">
<attribute name="style">color: black; font-size:13pt; font-weight:bold; margin-top:10mm; margin-bottom:3mm</attribute>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.format_title_trimada.xml
Format Title
ID: mint_system.stock.report_delivery_document.format_title
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//h2" position="replace">
<h2>
<span t-esc="'Lieferschein ' + o.name.replace('WH/OUT/', '')"/>
</h2>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.format_title.xml
Get Position
ID: mint_system.stock.report_delivery_document.get_position
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//table[@name='stock_move_table']/thead/tr/th[1]" position="before">
<t t-if="o.sale_id or o.purchase_id">
<th id="position">
<strong>Pos</strong>
</th>
</t>
</xpath>
<xpath expr="//table[@name='stock_move_line_table']/thead/tr/th[1]" position="before">
<t t-if="o.sale_id or o.purchase_id">
<th id="position">
<strong>Pos</strong>
</th>
</t>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<t t-if="o.sale_id or o.purchase_id">
<th id="position">
<strong>Pos</strong>
</th>
</t>
</xpath>
<xpath expr="//table[@name='stock_move_table']/tbody/tr/td[1]" position="before">
<t t-if="o.sale_id or o.purchase_id">
<td id="position">
<span t-esc="move.position"/>
</td>
</t>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/tbody//tr/td[1]" position="before">
<t t-if="o.sale_id or o.purchase_id">
<td id="position">
<span t-esc="bo_line.position"/>
</td>
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.get_position.xml
Header Margin
ID: mint_system.stock.report_delivery_document.header_margin
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div/table[1]" position="attributes">
<attribute name="style" separator=";" add="margin-top: 1rem"/>
</xpath>
<xpath expr="//div/table[2]" position="attributes">
<attribute name="style" separator=";" add="margin-top: 1rem"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.header_margin.xml
Hide Backorder Quantity
ID: mint_system.stock.report_delivery_document.hide_backorder_quantity
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_backorder_table']/thead//th[4]" position="replace">
<th></th>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.hide_backorder_quantity.xml
Hide If Not In State Done
ID: mint_system.stock.report_delivery_document.hide_if_not_in_state_done
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@class='page']" position="attributes">
<attribute name="t-if">o.state == 'done'</attribute>
</xpath>
<xpath expr="//div[@class='page']" position="after">
<t t-if="o.state != 'done'">
<span style="color: red; font-size: 20px">Dieser Lieferschein ist noch nicht im Status "ERLEDIGT"</span>
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.hide_if_not_in_state_done.xml
Hide Name
ID: mint_system.stock.report_delivery_document.hide_name
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//span[@t-field='o.name']/.." position="replace">
</xpath>
</data>
Source: snippets/stock.report_delivery_document.hide_name.xml
Hs Code Origin And Weight
ID: mint_system.stock.report_delivery_document.hs_code_origin_and_weight
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div/table[1]/tbody/tr/td[1]/span" position="after">
<t t-if="move.product_id.hs_code">
<br/>
HS Code: <span t-field="move.product_id.hs_code"/>
</t>
<t t-if="move.product_id.country_of_origin_id.code">
<br/>
Country of Origin: <span t-field="move.product_id.country_of_origin_id.code"/>
</t>
<t t-if="move.product_id.weight">
<br/>
Weight: <span t-field="move.product_id.weight"/>
<span t-field="move.product_id.weight_uom_id.display_name"/>
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.hs_code_origin_and_weight.xml
Margin After Title
ID: mint_system.stock.report_delivery_document.margin_after_title
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//h2" position="attributes">
<attribute name="style" separator=";" add="margin-bottom: 1rem"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.margin_after_title.xml
Margin Before Title
ID: mint_system.stock.report_delivery_document.margin_before_title
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//h2" position="attributes">
<attribute name="style" separator=";" add="margin-top: 1rem"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.margin_before_title.xml
Modify Main Table
ID: mint_system.stock.report_delivery_document.modify_main_table
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<!-- header -->
<!--<xpath expr="//table[@name='stock_move_table']/thead" position="attributes">-->
<!-- <attribute name="style">color: black; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//table[@name='stock_move_line_table']/thead" position="attributes">-->
<!-- <attribute name="style">color: black; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black</attribute>-->
<!--</xpath>-->
<!-- <xpath expr="//table[@name='stock_backorder_table']/thead" position="attributes">-->
<!-- <attribute name="style">color: black; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black</attribute>-->
<!--</xpath>-->
<!-- pos -->
<!--<xpath expr="//thead/tr/th[1]" position="attributes">-->
<!-- <attribute name="style">text-align: right; width: 5mm</attribute>-->
<!--</xpath>-->
<!-- quantity -->
<xpath expr="//table[@name='stock_move_table']/thead/tr/th[2]" position="attributes">
<attribute name="class">text-right</attribute>
</xpath>
<!--<xpath expr="//table[@name='stock_move_line_table']/thead/tr/th[2]" position="attributes">-->
<!-- <attribute name="class">text-right</attribute>-->
<!--</xpath>-->
<xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[2]" position="attributes">
<attribute name="class">text-right</attribute>
<attribute name="style">width:20mm</attribute>
</xpath>
<xpath t-if="o.state!='done'" expr="//table[@name='stock_move_table']/tbody/tr/td[1]" position="replace">
<td style="text-align: right; padding-right: 10px">
<span t-field="move.product_id.default_code"/>
</td>
</xpath>
<xpath t-if="o.state!='done'" expr="//table[@name='stock_move_table']/tbody/tr/td[2]" position="after">
<td style="text-align: right; ">
<span style="text-align: right; font-weight: bold" t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
</xpath>
<xpath expr="//t[@t-if='o.backorder_ids and backorders']/p" position="replace">
<div style="margin-top: 20mm; margin-bottom: 5mm; font-size: 9pt; padding-top: 15px; padding-bottom: 5px">
<span>All items couldn't be shipped, the following items will be shipped as soon as they become available.</span>
</div >
</xpath>
<!-- add default_code -->
<xpath t-if="o.state!='done'" expr="//table[@name='stock_move_table']/thead/tr[1]/th[1]" position="before">
<th style="text-align: right; width: 27mm; padding-right: 10px">
<strong >Part No.</strong>
</th>
</xpath>
<!--<xpath t-if="o.state=='done'" expr="//table[@name='stock_move_line_table']/thead/tr[1]/th[1]" position="before">-->
<!-- <th style="text-align: right; width: 27mm; padding-right: 10px">-->
<!-- <strong >Part No.</strong>-->
<!-- </th>-->
<!--</xpath>-->
<xpath expr="//span[@t-field='bo_line.product_uom_qty']" position="attributes">
<attribute name="style">font-weight: bold</attribute>
<attribute name="t-options-widget">"integer"</attribute>
</xpath>
<!--<xpath expr="//tbody/t/tr/td[2]" position="attributes">-->
<!-- <attribute name="class">text-right</attribute>-->
<!--</xpath>-->
<xpath t-if="o.backorder_ids and backorders" expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<th style="text-align: right; width: 27mm; padding-right: 10px">
<strong>Part No.</strong>
</th>
</xpath>
<xpath t-if="o.backorder_ids and backorders" expr="//table[@name='stock_backorder_table']/thead/tr/th[2]" position="after">
<th style="text-align: right; width: 27mm; padding-right: 10px">
<strong>Open Quantity</strong>
</th>
</xpath>
<xpath t-if="o.backorder_ids and backorders" expr="//table[@name='stock_backorder_table']/tbody//td[2]" position="after">
<tr style="border-bottom: 1px solid rgb(220,220,220)">
<td colspan="8"></td>
</tr>
</xpath>
<!--<xpath expr="//table[@name='stock_move_line_table']" position="after">-->
<!-- <t t-if="o.note_footer != '<p><br></p>'">-->
<!-- <span class="note" t-field="o.note_footer"/>-->
<!-- </t>-->
<!--</xpath> -->
</data>
Source: snippets/stock.report_delivery_document.modify_main_table.xml
Move Lines
ID: mint_system.stock.report_delivery_document.move_lines
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_line_table']" position="before">
<table class="tissa table table-sm" name="move_table">
<thead>
<tr>
<th>
<strong>Pos</strong>
</th>
<th>
<strong>Product (Sales Description)</strong>
</th>
<th>
<strong></strong>
</th>
<th class="cell_right">
<strong>Quantity</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="moves" t-value="o.move_lines"/>
<tr t-if="move.quantity_done > 0" t-foreach="moves" t-as="move">
<td>
<span t-esc="move.position"/>
</td>
<td>
<span t-esc="move.product_id.description_sale"/>
</td>
<td></td>
<td class="cell_right">
<span t-esc="move.quantity_done"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.move_lines.xml
Pos In Table
ID: mint_system.stock.report_delivery_document.pos_in_table
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
<span>Pos</span>
</th>
</xpath>
<xpath expr="//table[2]/thead/tr/th[1]" position="before">
<th>
<span>Pos</span>
</th>
</xpath>
<xpath expr="//t[@t-foreach='packages']" position="before">
<t t-set="index" t-value="1"/>
</xpath>
<xpath expr="//tr[@t-foreach='lines']" position="before">
<t t-set="index" t-value="1"/>
</xpath>
<xpath expr="//t[@name='aggregated_move_lines']/t[1]" position="before">
<t t-set="index" t-value="1"/>
</xpath>
<xpath expr="//table[1]/tbody/tr/td[1]" position="before">
<td>
<span t-esc="index"/><t t-set="index" t-value="index+1"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.pos_in_table.xml
Remove Informations
ID: mint_system.stock.report_delivery_document.remove_informations
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@name='div_origin']/.." position="replace">
</xpath>
</data>
Source: snippets/stock.report_delivery_document.remove_informations.xml
Replace Header
ID: mint_system.stock.report_delivery_document.replace_header
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@t-if='o.origin']/.." position="before">
<style>
table#header {
width: 100%;
border: solid 1px;
font-size: 18pt;
}
table#header td {
padding: 5px;
padding-left: 10px;
vertical-align: middle;
font-weight: bold;
}
</style>
<table id='header'>
<tr>
<td>Lieferschein <span t-field="o.name"/>
</td>
<td>
<span>
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', o.name, 600, 100)" style="width:210px;height:60px; float:right;"/>
</span>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_header.xml
Replace Information Table2
ID: mint_system.stock.report_delivery_document.replace_information_table2
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@class='page']/div[1]" position="replace">
<div>
<table style="border-style:none; width:100%">
<tr >
<td style="border-style:none">
<strong>Customer Reference</strong>
<p t-field="o.sudo().sale_id.client_order_ref"/>
</td>
<td style="border-style:none">
<strong>Shipping Date</strong>
<p t-field="o.scheduled_date" t-options='{"widget": "date"}'/>
</td>
<td style="border-style:none">
<strong>Incoterms</strong>
<p t-field="res_company.incoterm_id.code"/>
</td>
<td style="border-style:none">
<strong>Carrier</strong>
<p t-field="o.carrier_id"/>
</td>
<td style="border-style:none">
<span><strong>Total Weight</strong></span><br></br>
<span t-field="o.shipping_weight"/> <span t-field="o.weight_uom_name"/>
</td>
<td style="border-style:none">
<strong>Order</strong>
<p t-field="o.origin"/>
</td>
</tr>
</table>
</div>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_information_table2.xml
Replace Information Table
ID: mint_system.stock.report_delivery_document.replace_information_table
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@class='page']/div[1]" position="replace">
<table class="table table-borderless table-sm">
<tr>
<td>
<strong>Verkaufsauftrag: </strong>
<span t-field="o.sale_id.name"/>
</td>
<td>
<strong>Bestelldatum: </strong>
<span t-field="o.sale_id.date_order" t-options='{"widget": "date"}' />
</td>
<td>
<strong>Kontakt Verkauf: </strong>
<span t-field="o.sale_id.user_id" />
</td>
</tr>
<tr>
<td>
<strong>Kunden-Nr.: </strong>
<span t-field="o.partner_id.ref" />
</td>
<td>
<strong>Lieferdatum: </strong>
<span t-field="o.move_lines[0].date_deadline" t-options='{"widget": "date"}' />
</td>
<td>
<strong>Tel. Direkt: </strong>
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'delivery' and c.phone)" t-as="delivery_partner">
<span t-esc="delivery_partner.phone" />
</t>
</td>
</tr>
<tr>
<td></td>
<td>
<div t-if="o.picking_type_id.code == 'outgoing' and o.carrier_id">
<strong>Spediteur: </strong>
<span t-field="o.carrier_id"/>
</div>
</td>
<td>
<strong>E-Mail: </strong>
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'delivery' and c.email)" t-as="delivery_partner">
<span t-esc="delivery_partner.email" />
</t>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_information_table.xml
Replace Infotable
ID: mint_system.stock.report_delivery_document.replace_infotable
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@class='page']/div[1]" position="replace">
<style>
table#infotable td,
table#infotable th {
padding-top: 0;
padding-bottom: 0;
}
</style>
<table id="infotable" class="table table-sm table-borderless">
<thead class="o_thead">
<tr>
<th id="origin">Auftrag:</th>
<th t-if="o.state == 'done'" id="date_done">Versanddatum:</th>
<th t-if="o.state != 'done'" id="scheduled_date">Versanddatum:</th>
<th id="client_order_ref">Kundenreferenz:</th>
</tr>
</thead>
<tbody>
<tr>
<td id="origin">
<span t-field="o.origin" />
</td>
<td t-if="o.state == 'done'" id="date_done">
<span t-field="o.date_done" />
</td>
<td t-if="o.state != 'done'" id="scheduled_date">
<span t-field="o.scheduled_date" />
</td>
<td id="client_order_ref">
<span t-field="o.sudo().sale_id.client_order_ref" />
</td>
</tr>
</tbody>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_infotable.xml
Replace Order Definition
ID: mint_system.stock.report_delivery_document.replace_order_definition
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//div[@t-if='o.origin']/.." position="replace">
<style>
table#titel {
width: 100%;
font-size: 11pt;
margin-top: 10px;
}
table#titel tr {
border-bottom: 1px solid rgb(220,220,220);
}
table#titel td {
padding-left: 10px;
padding-bottom: 5px;
}
</style>
<table id='titel'>
<tr>
<td style="width: 44%;"><strong>Fertigungsauftrag <span t-field="o.origin"/></strong></td>
<td style="width: 56%"><strong>Produkt </strong><span t-field="o.product_id"/></td>
</tr>
<tr>
<td>Status: <span t-field="o.state"/></td>
<td>Datum: <span t-field="o.scheduled_date" t-options='{"widget": "date"}'></span></td>
</tr>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_order_definition.xml
Replace Product Description On Backorder
ID: mint_system.stock.report_delivery_document.replace_product_description_on_backorder
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath t-if="o.backorder_ids and backorders" expr="//table[@name='stock_backorder_table']/tbody/t/tr/td[1]" position="replace">
<td>
<span style="font-weight: bold" t-field="bo_line.product_id.type_description"/><br/>
<span t-field="bo_line.description_picking"/><br/>
<t t-if="bo_line.product_id.country_of_origin_id.code and bo_line.product_id.hs_code">
Country of origin: <span t-esc="bo_line.product_id.country_of_origin_id.code"/>
/ HS Code: <span t-esc="bo_line.product_id.hs_code"/><br/>
</t>
<t t-if="bo_line.product_id.hs_code and not bo_line.product_id.country_of_origin_id.code">
HS Code: <span t-esc="bo_line.product_id.hs_code"/>
</t>
<t t-if="bo_line.product_id.country_of_origin_id.code and not bo_line.product_id.hs_code">
Country of origin: <span t-esc="bo_line.product_id.country_of_origin_id.code"/>
</t>
</td>
</xpath>
<xpath t-if="o.backorder_ids and backorders" expr="//table[@name='stock_backorder_table']/tbody/t/tr/td[1]" position="before">
<td style="text-align: right; padding-right: 10px">
<span t-field="bo_line.product_id.default_code"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_product_description_on_backorder.xml
Replace Product Description
ID: mint_system.stock.report_delivery_document.replace_product_description
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/tbody/tr/td[1]" position="replace">
<td>
<t t-if="move.product_id.type_description">
<strong><span t-field="move.product_id.type_description"/></strong><br/>
</t>
<span t-field="move.description_picking"/><br/>
<t t-if="move.product_id.country_of_origin_id.code">Ursprungsland: <span t-field="move.product_id.country_of_origin_id.code"/></t>
<t t-if="move.product_id.hs_code"> / Zollposition: <span t-field="move.product_id.hs_code"/></t>
</td>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_product_description.xml
Replace Product Uom Qty
ID: mint_system.stock.report_delivery_document.replace_product_uom_qty
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//span[@t-field='move.product_uom_qty']" position="replace">
<span t-field="move.quantity_done"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_product_uom_qty.xml
Replace Table
ID: mint_system.stock.report_delivery_document.replace_table
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']" position="replace">
<table style="width:100%; font-family: arial; font-size: 9pt; margin-top: 20px; " t-if="o.state!='done'" name="stock_move_table">
<thead>
<tr style="color:black; border-bottom: 1px solid rgb(220,220,220);">
<th style="padding-left: 9px; padding-bottom: 10px; width:10%;">Art. Nr.</th>
<th name="th_sm_product" style="width:35%;"><strong>Bezeichnung</strong></th>
<th style="width:25%;">Typenbezeichnung</th>
<th name="th_sm_quantity" style="width:20%; text-align:right; padding-right:20px;"><strong>Menge</strong></th>
<th style="width:15%; text-align: right; padding-right: 10px">Lieferdatum</th>
</tr>
</thead>
<tbody>
<t t-set="lines" t-value="o.move_lines.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move" style="border-bottom: 1px solid rgb(220,220,220);">
<td style="padding-left: 10px; padding-top:5px; vertical-align:top;">
<span t-field="move.product_id.default_code"/>
</td>
<td style="padding-top:5px; padding-right: 10px; vertical-align:top;">
<span t-field="move.product_id.name"/>
<p t-if="move.description_picking != move.product_id.name">
<span t-field="move.description_picking"/>
</p>
</td>
<td style="padding-top:5px; vertical-align:top;">
<span t-field="move.product_id.type_description"/>
</td>
<td style="width:18%; text-align:right; padding-right:20px; padding-top:5px; vertical-align:top;">
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
<td style="text-align: right; padding-right: 10px; padding-top:5px; vertical-align:top;">
<span t-field="move.date" t-options='{"widget": "date"}'/>
</td>
</tr>
</tbody>
</table>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.replace_table.xml
Round Qty2
ID: mint_system.stock.report_delivery_document.round_qty2
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//span[@id='qty']" position="replace">
<!-- 34.00 -> 34 -->
<!-- 34.50 -> 34.5 -->
<!-- 34.75 -> 34.75 -->
<span id="qty" t-esc="'%g' % move.product_uom_qty" />
</xpath>
<xpath expr="//span[@id='open_qty']" position="replace">
<!-- 34.00 -> 34 -->
<!-- 34.50 -> 34.5 -->
<!-- 34.75 -> 34.75 -->
<span id="open_qty" t-esc="'%g' % bo_line.product_uom_qty" />
</xpath>
</data>
Source: snippets/stock.report_delivery_document.round_qty2.xml
Round Qty
ID: mint_system.stock.report_delivery_document.round_qty
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//span[@id='qty']" position="replace">
<!-- 34.00 -> 34 -->
<!-- 34.50 -> 34.50 -->
<!-- 34.75 -> 34.75 -->
<span id="qty" t-esc="'%g' % move.product_uom_qty if int(move.product_uom_qty) == move.product_uom_qty else '%.2f' % move.product_uom_qty" />
</xpath>
<xpath expr="//span[@id='open_qty']" position="replace">
<!-- 34.00 -> 34 -->
<!-- 34.50 -> 34.50 -->
<!-- 34.75 -> 34.75 -->
<span id="open_qty" t-esc="'%g' % bo_line.product_uom_qty if int(bo_line.product_uom_qty) == bo_line.product_uom_qty else '%.2f' % bo_line.product_uom_qty" />
</xpath>
</data>
Source: snippets/stock.report_delivery_document.round_qty.xml
Sale Order Note
ID: mint_system.stock.report_delivery_document.sale_order_note
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<p t-if="o.sale_id.note" style="margin-top: 3rem;" t-field="o.sale_id.note"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.sale_order_note.xml
Sale Stock Picking Note
ID: mint_system.stock.report_delivery_document.sale_stock_picking_note
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//p[@t-if='o.customer_note']" position="replace">
</xpath>
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<p t-if="o.customer_note" style="margin-top: 3rem;" t-field="o.customer_note"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.sale_stock_picking_note.xml
Sequence In Table
ID: mint_system.stock.report_delivery_document.sequence_in_table
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
<span>Pos</span>
</th>
</xpath>
<xpath expr="//table[1]/tbody/tr/td[1]" position="before">
<td>
<span t-esc="move.sequence-9"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.sequence_in_table.xml
Set Customer Reference
ID: mint_system.stock.report_delivery_document.set_customer_reference
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//t[@t-set='address']" position="before">
<t t-set="information_block">
<span><strong>Kundennummer: </strong></span>
<span t-esc="partner.ref"/>
<br/>
<br/>
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.set_customer_reference.xml
Set Ids
ID: mint_system.stock.report_delivery_document.set_ids
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//table[@name='stock_move_table']//th[2]" position="attributes">
<attribute name="id">description</attribute>
</xpath>
<xpath expr="//table[@name='stock_move_table']//th[3]" position="attributes">
<attribute name="id">quantity</attribute>
</xpath>
<xpath expr="//table[@name='stock_move_table']//td[3]" position="attributes">
<attribute name="id">quantity</attribute>
</xpath>
<xpath expr="//table[@name='stock_move_table']//td[3]/span[1]" position="attributes">
<attribute name="id">qty</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']//th[2]" position="attributes">
<attribute name="id">description</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']//th[3]" position="attributes">
<attribute name="id">open_quantity</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']//td[3]" position="attributes">
<attribute name="id">open_quantity</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']//th[3]" position="attributes">
<attribute name="id">open_quantity</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']//td[3]/span[1]" position="attributes">
<attribute name="id">open_qty</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']//th[4]" position="attributes">
<attribute name="id">quantity</attribute>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/../p" position="attributes">
<attribute name="class">subtitel</attribute>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.set_ids.xml
Show Customer Info Product Code
ID: mint_system.stock.report_delivery_document.show_customer_info_product_code
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<span t-field="move.product_id" position="before">
<t t-set="customer_info" t-value="move.product_id._select_customerinfo(partner=o.partner_id)" />
<t t-if="customer_info">
<span t-esc="'[%s] ' % customer_info[0].product_code" />
</t>
</span>
</data>
Source: snippets/stock.report_delivery_document.show_customer_info_product_code.xml
Show Default Code
ID: mint_system.stock.report_delivery_document.show_default_code
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/thead/tr/th[1]" position="before">
<th id="default_code">
<strong >Nr.</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<th id="default_code">
<strong >Nr.</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_move_table']/tbody//tr/td[1]" position="before">
<td id="default_code">
<span t-field="move.product_id.default_code"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.show_default_code.xml
Show Quantity Done
ID: mint_system.stock.report_delivery_document.show_quantity_done
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/tbody/t/td[2]/span[1]" position="attributes">
<attribute name="t-field">move.quantity_done</attribute>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.show_quantity_done.xml
Sort By Position
ID: mint_system.stock.report_delivery_document.sort_by_position
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/tbody/t" position="after">
<t t-set="lines" t-value="lines.sorted(key=lambda l: (l.position))"/>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/tbody/t/t" position="after">
<t t-set="bo_lines" t-value="bo_lines.sorted(key=lambda l: (l.position))"/>
</xpath>
<xpath expr="//t[@name='no_package_move_lines']" position="before">
<t t-set="move_lines" t-value="move_lines.sorted(key=lambda l: (l.position))"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.sort_by_position.xml
Style Tissa
ID: mint_system.stock.report_delivery_document.style_tissa
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//div[hasclass('page')]" position="before">
<style>
table.tissa {
margin-top: 30px;
margin-bottom: 30px;
}
.cell_right {
text-align: right;
padding-right: 10px !important;
}
</style>
</xpath>
<xpath expr="//th[@name='th_sml_quantity']" position="attributes">
<attribute name="class">cell_right</attribute>
</xpath>
<xpath expr="//th[@name='th_sm_quantity']" position="attributes">
<attribute name="class" separator=" " add="cell_right"/>
</xpath>
<xpath expr="//table[@name='stock_move_table']//td[2]" position="attributes">
<attribute name="class" separator=" " add="cell_right"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.style_tissa.xml
Style Trimada
ID: mint_system.stock.report_delivery_document.style_trimada
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="60">
<xpath expr="//div[hasclass('page')]" position="before">
<style>
table.trimada {
font-size: 9pt;
font-family: arial;
color: black;
}
table.trimada thead tr {
border-top:solid 1px;
border-bottom: solid 1px;
}
table.trimada thead th#position {
width: 5mm;
}
table.trimada thead th#default_code {
width: 27mm;
text-align: right;
}
table.trimada thead th#open_quantity {
width: 30mm;
text-align: right;
}
table.trimada thead th#quantity {
width: 25mm;
text-align: right !important;
}
table.trimada tbody td#position {
text-align: right;
}
table.trimada tbody tr {
border-bottom: 1px solid rgb(220,220,220)
}
table.trimada tbody td#default_code {
text-align: right;
}
table.trimada tbody td#open_quantity {
text-align: right !important;
}
table.trimada tbody td#quantity {
text-align: right;
}
table.trimada tbody span#qty {
font-weight: bold;
}
table.trimada tbody span#open_qty {
font-weight: bold;
}
.subtitel {
font-size: 11pt;
font-family: arial;
margin-top: 10mm;
}
.note {
font-size: 9pt;
font-family: arial;
}
</style>
</xpath>
<table name="stock_move_table" position="attributes">
<attribute name="class" separator=" " add="trimada table-borderless"/>
</table>
<table name="stock_backorder_table" position="attributes">
<attribute name="class" separator=" " add="trimada table-borderless"/>
</table>
</data>
Source: snippets/stock.report_delivery_document.style_trimada.xml
Switch Address Block
ID: mint_system.stock.report_delivery_document.switch_address_block
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//t[@t-set='address']" position="after">
<t t-set="information_block">
<div t-esc="partner" t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}"/>
</t>
</xpath>
<xpath expr="//t[@t-set='address']" position="replace">
<t t-set="address">
</t>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.switch_address_block.xml
Title Supplement
ID: mint_system.stock.report_delivery_document.title_supplement
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//h2" position="replace">
<h2>
Delivery Slip <span t-field="o.name"/>
</h2>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.title_supplement.xml
X Hide On Delivery
ID: mint_system.stock.report_delivery_document.x_hide_on_delivery
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/tbody/t" position="after">
<t t-set="lines" t-value="lines.filtered(lambda l: not l.product_id.x_hide_on_delivery)"/>
</xpath>
<xpath expr="//t[@name='no_package_move_lines']" position="before">
<t t-set="move_lines" t-value="move_lines.filtered(lambda l: not l.product_id.x_hide_on_delivery)"/>
</xpath>
<xpath expr="//t[@t-set='package_move_lines']" position="after">
<t t-set="package_move_lines" t-value="package_move_lines.filtered(lambda l: not l.product_id.x_hide_on_delivery)"/>
</xpath>
</data>
Source: snippets/stock.report_delivery_document.x_hide_on_delivery.xml
Report Picking
Add Address Block
ID: mint_system.stock.report_picking.add_address_block
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//table[1]" position="after">
<div class="table address_block">
<div class="row">
<div class="col">
<div t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
</div>
</div>
</div>
</xpath>
</data>
Source: snippets/stock.report_picking.add_address_block.xml
Add Delivery Note
ID: mint_system.stock.report_picking.add_delivery_note
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="/t/t/t/t/div/table[1]" position="after">
<p t-field="o.delivery_note"/>
</xpath>
</data>
Source: snippets/stock.report_picking.add_delivery_note.xml
Add Mrp Production X Note
ID: mint_system.stock.report_picking.add_mrp_production_x_note
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//table[@id='main_table']" position="after">
<t t-set="production" t-value="o.group_id.mrp_production_ids"/>
<t t-foreach="production" t-as="production_line">
<t t-if="production_line.x_note != '<br>'">
<p class="oe_no_empty" t-field="production_line.x_note"/>
</t>
</t>
</xpath>
</data>
Source: snippets/stock.report_picking.add_mrp_production_x_note.xml
Barcode Label
ID: mint_system.stock.report_picking.barcode_label
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div/div/div/img" position="before">
<strong>Rüstschein Code:</strong>
</xpath>
</data>
Source: snippets/stock.report_picking.barcode_label.xml
Format Delivery Date
ID: mint_system.stock.report_picking.format_delivery_date
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//p[@t-field='o.scheduled_date']" position="attributes">
<attribute name="t-options-widget">"date"</attribute>
</xpath>
</data>
Source: snippets/stock.report_picking.format_delivery_date.xml
Format Qty Available
ID: mint_system.stock.report_picking.format_qty_available
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="60">
<span id="qty_available" position="attributes">
<attribute name="t-options-widget">"integer"</attribute>
</span>
</data>
Source: snippets/stock.report_picking.format_qty_available.xml
Format Qty
ID: mint_system.stock.report_picking.format_qty
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//span[@id='product_uom_qty']" position="replace">
<t t-if="ml.product_uom_id.id == 1">
<span id="product_uom_qty" t-field="ml.product_uom_qty" t-options="{'widget': 'integer'}"/>
</t>
<t t-else="">
<span id="product_uom_qty" t-field="ml.product_uom_qty"/>
</t>
</xpath>
<xpath expr="//span[@id='qty_available']" position="replace">
<t t-if="ml.product_uom_id.id == 1">
<span id="qty_available" t-field="ml.product_id.qty_available" t-options="{'widget': 'integer'}"/>
</t>
<t t-else="">
<span id="qty_available" t-field="ml.product_id.qty_available"/>
</t>
</xpath>
</data>
Source: snippets/stock.report_picking.format_qty.xml
Format Title
ID: mint_system.stock.report_picking.format_title
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//h1[@t-field='o.name']" position="replace">
<h1 t-esc="'Rüstschein ' + o.name.replace('WH/OUT/', '')"/>
</xpath>
</data>
Source: snippets/stock.report_picking.format_title.xml
Get Position
ID: mint_system.stock.report_picking.get_position
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<!-- <xpath expr="//th[@name='th_product']" position="before">
<t t-if="o.sale_id or o.purchase_id"> -->
<xpath expr="//th[@id='default_code']" position="before">
<th id="position">
<strong>Pos</strong>
</th>
<!-- </t> -->
</xpath>
<xpath expr="//td[@id='default_code']" position="before">
<!-- <xpath expr="//span[@t-field='ml.product_id.description_picking']/.." position="before"> -->
<!-- <t t-if="o.sale_id or o.purchase_id"> -->
<td id="position">
<span t-esc="move.position"/>
</td>
<!-- </t> -->
</xpath>
</data>
Source: snippets/stock.report_picking.get_position.xml
Group By Date
ID: mint_system.stock.report_picking.group_by_date
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[hasclass('page')]" position="before">
<!-- Get all lines without duplicates -->
<t t-set="dates" t-value="list(set([date.date() for date in o.move_ids_without_package.mapped('date')]))" />
<!-- Store if has dates -->
<t t-set="has_dates" t-value="len(dates) > 0" />
<!-- Store if has multiple dates -->
<t t-set="has_multiple_dates" t-value="len(dates) > 1" />
</xpath>
<!-- Replace loop -->
<xpath expr="//t[@t-foreach='o.move_ids_without_package']" position="replace">
<!--<p t-esc="dates" />-->
<!--<p t-esc="has_dates" />-->
<!--<p t-esc="has_multiple_dates" />-->
<!-- Loop each group item -->
<t t-foreach="dates" t-as="date">
<!-- Insert group item -->
<tr t-if="has_dates and date" class="o_line_note">
<td colspan="99" style="padding-top: 1rem;">
<strong>
<span>Lieferdatum: </span>
<span t-esc="date" t-options="{'widget': 'date'}" />
</strong>
</td>
</tr>
<!-- Show only move that are assigned to the group item -->
<t t-set="move_ids" t-value="o.move_ids_without_package.filtered(lambda m: m.date.strftime('%Y-%m-%d') == date.strftime('%Y-%m-%d')).sorted(lambda m: m.date)" />
<t t-foreach="move_ids" t-as="move">
<t t-foreach="move.move_line_ids.sorted(key=lambda ml: ml.location_id.id)" t-as="ml">
<tr>
<td id="description_picking">
<span t-field="ml.product_id.display_name" />
<br />
<span t-field="ml.product_id.description_picking" />
</td>
<td id="product_uom_qty">
<span t-if="o.state != 'done'" t-field="ml.product_uom_qty" />
<span t-if="o.state == 'done'" t-field="ml.qty_done" />
<span t-field="ml.product_uom_id" groups="uom.group_uom" />
</td>
<td id="location_id" t-if="o.picking_type_id.code != 'incoming'" groups="stock.group_stock_multi_locations">
<span t-esc="ml.location_id.display_name" />
<t t-if="ml.package_id">
<span t-field="ml.package_id" />
</t>
</td>
<td id="location_dest_id" t-if="o.picking_type_id.code != 'outgoing'" groups="stock.group_stock_multi_locations">
<div>
<span t-field="ml.location_dest_id" />
<t t-if="ml.result_package_id">
<span t-field="ml.result_package_id" />
</t>
</div>
</td>
<td id="has_serial_number" class=" text-center h6" t-if="has_serial_number">
<img t-if="has_serial_number and (ml.lot_id or ml.lot_name)" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&humanreadable=1' % ('Code128', ml.lot_id.name or ml.lot_name, 400, 100)" style="width:100%;height:35px;" alt="Barcode" />
</td>
<td id="has_barcode" class="text-center" t-if="has_barcode">
<t t-if="product_barcode != move.product_id.barcode">
<span t-if="move.product_id and move.product_id.barcode">
<img t-if="len(move.product_id.barcode) == 13" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=%s' % ('EAN13', move.product_id.barcode, 400, 100, 0)" style="height:35px" alt="Barcode" />
<img t-elif="len(move.product_id.barcode) == 8" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=%s' % ('EAN8', move.product_id.barcode, 400, 100, 0)" style="height:35px" alt="Barcode" />
<img t-else="" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=%s' % ('Code128', move.product_id.barcode, 400, 100, 0)" style="height:35px" alt="Barcode" />
</span>
<t t-set="product_barcode" t-value="move.product_id.barcode" />
</t>
</td>
</tr>
</t>
</t>
</t>
</xpath>
</data>
Source: snippets/stock.report_picking.group_by_date.xml
Header Box
ID: mint_system.stock.report_picking.header_box
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//h1" position="replace">
<div class="header_box">
<div class="row align-items-center">
<div class="col">
<h1 class="trimada">Rüstschein <span t-field="o.name"/>
</h1>
</div>
<div class="col">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', o.name, 600, 100)" style="width:210px;height:60px; float:right;" alt="Barcode"/>
</div>
</div>
</div>
</xpath>
</data>
Source: snippets/stock.report_picking.header_box.xml
Hide Address
ID: mint_system.stock.report_picking.hide_address
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[@name='div_outgoing_address']/.." position="replace"/>
</data>
Source: snippets/stock.report_picking.hide_address.xml
Hide Location Dest
ID: mint_system.stock.report_picking.hide_location_dest
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<!-- Hide destination location column for outgoing deliveries of operation type Pick Components -->
<xpath expr="//th[@name='th_to']" position="replace">
<th name="th_to" t-if="o.picking_type_id.code != 'outgoing' and o.picking_type_id.id != 12" groups="stock.group_stock_multi_locations">
<strong>To</strong>
</th>
</xpath>
<xpath expr="//td[@id='location_dest_id']" position="replace">
attribute name="t-if"
<td t-if="o.picking_type_id.code != 'outgoing' and o.picking_type_id.id != 12" groups="stock.group_stock_multi_locations">
<div>
<span t-field="ml.location_dest_id"/>
<t t-if="ml.result_package_id">
<span t-field="ml.result_package_id"/>
</t>
</div>
</td>
</xpath>
</data>
Source: snippets/stock.report_picking.hide_location_dest.xml
Hide Name
ID: mint_system.stock.report_picking.hide_name
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//h1[@t-field='o.name']" position="replace"/>
</data>
Source: snippets/stock.report_picking.hide_name.xml
Margin Barcode
ID: mint_system.stock.report_picking.margin_barcode
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div/div/div/img" position="attributes">
<attribute name="style" separator=";" add="margin-bottom: 1rem"/>
</xpath>
</data>
Source: snippets/stock.report_picking.margin_barcode.xml
Margin Before Table
ID: mint_system.stock.report_picking.margin_before_table
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="60">
<xpath expr="//table[1]" position="attributes">
<attribute name="style" separator=";" add="margin-top: 1rem"/>
</xpath>
</data>
Source: snippets/stock.report_picking.margin_before_table.xml
Modify No Reserved Product
ID: mint_system.stock.report_picking.modify_no_reserved_product
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//t[@t-set='no_reserved_product']" position="attributes">
<attribute name="t-value">o.move_lines.filtered(lambda x: x.product_uom_qty != x.reserved_availability and x.state!='done')</attribute>
</xpath>
</data>
Source: snippets/stock.report_picking.modify_no_reserved_product.xml
Partner Ref
ID: mint_system.stock.report_picking.partner_ref
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[@name='div_incoming_address']/div[1]" position="before">
<div t-if="o.partner_id.ref">
<span><strong>Kundennummer: </strong></span>
<span t-field="o.partner_id.ref"/>
</div>
</xpath>
</data>
Source: snippets/stock.report_picking.partner_ref.xml
Pos In Table
ID: mint_system.stock.report_picking.pos_in_table
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="60">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
<strong>Pos</strong>
</th>
</xpath>
<xpath expr="//t[@t-foreach='o.move_ids_without_package']" position="before">
<span t-set="index" t-value="1"/>
</xpath>
<xpath expr="//table[1]/tbody/t//tr/td[1]" position="before">
<td>
<span t-esc="index"/>
<t t-set="index" t-value="index+1"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_picking.pos_in_table.xml
Pricelist Below Address
ID: mint_system.stock.report_picking.pricelist_below_address
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[@name='partner_header']/p" position="after">
<span t-field="o.sale_id.pricelist_id.display_name"/>
</xpath>
</data>
Source: snippets/stock.report_picking.pricelist_below_address.xml
Product Description
ID: mint_system.stock.report_picking.product_description
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//td[@id='description_picking']" position="replace">
<td id="description_picking">
<strong>
<span t-esc="move.product_id.type_description"/>
</strong>
<br/>
<t t-if="move.description_picking">
<span t-esc="move.description_picking"/>
<br/>
</t>
<t t-if="not move.description_picking">
<span t-esc="move.product_id.name"/>
<br/>
</t>
<span id="description_pickingout" t-field="move.product_id.description_pickingout"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_picking.product_description.xml
Relocate Quantity
ID: mint_system.stock.report_picking.relocate_quantity
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//th[@id='product_uom_qty']" position="replace"/>
<xpath expr="//th[@id='th_to']" position="after">
<th id="product_uom_qty">
<strong>Quantity</strong>
</th>
</xpath>
<xpath expr="//td[@id='product_uom_qty']" position="replace"/>
<xpath expr="//td[@id='location_dest_id']" position="after">
<td id="product_uom_qty">
<t t-if="o.state != 'done'">
<span id="product_uom_qty" t-esc="'%g' % ml.product_uom_qty"/>
</t>
<t t-if="o.state == 'done'">
<span id="qty_done">
(<span t-esc="'%g' % ml.qty_done"/>)
</span>
<span id="product_uom_qty" t-esc="'%g' % ml.product_uom_qty"/>
</t>
<span t-field="ml.product_uom_id" groups="uom.group_uom"/>
<br/>
<span id="qty_available" t-field="ml.product_id.qty_available"/>
<span id="qty_available_uom_id" t-field="ml.product_id.uom_id"/>
</td>
</xpath>
</data>
Source: snippets/stock.report_picking.relocate_quantity.xml
Remove From And To
ID: mint_system.stock.report_picking.remove_from_and_to
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//th[@name='th_from']" position="replace">
</xpath>
<xpath expr="//th[@name='th_to']" position="replace">
</xpath>
<xpath expr="//tbody/t//tr/td[3]" position="replace">
</xpath>
</data>
Source: snippets/stock.report_picking.remove_from_and_to.xml
Remove Reservation Notice
ID: mint_system.stock.report_picking.remove_reservation_notice
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[hasclass('page')]/p[1]" position="replace"/>
</data>
Source: snippets/stock.report_picking.remove_reservation_notice.xml
Remove Serial Number
ID: mint_system.stock.report_picking.remove_serial_number
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//th[@t-if='has_serial_number']" position="replace">
</xpath>
<xpath expr="//td[@t-if='has_serial_number']" position="replace">
</xpath>
</data>
Source: snippets/stock.report_picking.remove_serial_number.xml
Remove To
ID: mint_system.stock.report_picking.remove_to
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//th[@name='th_to']" position="replace">
<th name="th_to" t-if="o.picking_type_id.code != 'outgoing' and o.picking_type_id.id != 12" groups="stock.group_stock_multi_locations">
<strong>To</strong>
</th>
</xpath>
<xpath expr="//td[@id='location_dest_id']" position="replace">
<td t-if="o.picking_type_id.code != 'outgoing' and o.picking_type_id.id != 12" groups="stock.group_stock_multi_locations">
<div>
<span t-field="ml.location_dest_id"/>
<t t-if="ml.result_package_id">
<span t-field="ml.result_package_id"/>
</t>
</div>
</td>
</xpath>
</data>
Source: snippets/stock.report_picking.remove_to.xml
Replace Barcode
ID: mint_system.stock.report_picking.replace_barcode
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//td[@id='barcode']" position="replace">
<td id="barcode" class="trimada" t-if="has_barcode">
<t t-if="product_barcode != move.product_id.barcode">
<span t-if="move.product_id and move.product_id.barcode">
<img t-if="len(move.product_id.barcode) == 13" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=%s' % ('EAN13', move.product_id.barcode, 290, 100, 0)" style="height:35px" alt="Barcode"/>
<img t-elif="len(move.product_id.barcode) == 8" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=%s' % ('EAN8', move.product_id.barcode, 290, 100, 0)" style="height:35px" alt="Barcode"/>
<img t-else="" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=%s' % ('Code128', move.product_id.barcode, 290, 100, 0)" style="height:35px" alt="Barcode"/>
</span>
<t t-set="product_barcode" t-value="move.product_id.barcode"/>
</t>
</td>
</xpath>
</data>
Source: snippets/stock.report_picking.replace_barcode.xml
Replace Header
ID: mint_system.stock.report_picking.replace_header
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//div[@name='right_box']/.." position="replace">
<style>
table.trimada_header {
width: 100%;
font-family: arial;
font-size: 18pt;
font-weight: bold;
border:solid 1px;
}
table.trimada_header td {
padding-left: 10px;
vertical-align: middle;
padding: 5px;
}
</style>
<table class="trimada_header">
<tr>
<td>Rüstschein <span t-field="o.name"/>
</td>
<td>
<span>
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', o.name, 600, 100)" style="width:210px;height:60px; float:right;" alt="Barcode"/>
</span>
</td>
</tr>
</table>
</xpath>
</data>