nfu/nfu_ekg_stock/views/report_deliveryslip.xml
2024-05-29 17:21:33 +02:00

71 lines
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="report_ekg_delivery_document">
<t t-set="o" t-value="o.with_context(lang=o._get_report_lang())"/>
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id) or False"/>
<div class="scissors"/>
<div class="page" style="page-break-inside: avoid;">
<div class="row mt32">
<div class="col-auto" name="div_name">
<strong><span t-field="partner.name"/></strong>
</div>
</div>
<table class="table table-sm" name="stock_move_table">
<thead>
<tr>
<th name="th_sm_product_qty"><strong>Batch Size</strong></th>
<th name="th_sm_product"><strong>Product</strong></th>
<th name="th_sm_ordered"><strong>Ordered</strong></th>
</tr>
</thead>
<tbody>
<t t-set="lines" t-value="o.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move">
<td class="fit">
<!-- Needs to be filled later -->
<!-- <span t-field="move.product_uom_qty"/> -->
<!-- <span t-field="move.product_uom"/> -->
</td>
<td>
<span t-field="move.product_id.name"/>
<p
t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name"
>
<span t-field="move.description_picking"/>
</p>
</td>
<td class="fit">
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
<div t-if="o.signature" class="mt32 ml64 mr4" name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(o.signature)" style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="o.partner_id.name"/>
</div>
</div>
</div>
</template>
<template id="report_ekg_deliveryslip">
<t t-call="web.html_container">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="o">
<t t-call="nfu_ekg_stock.report_ekg_delivery_document" t-lang="o._get_report_lang()"/>
</t>
</t>
</t>
</template>
</odoo>