[imp] add batch information to delivery slip and some formating
This commit is contained in:
parent
515e271fe7
commit
3b4b3f49ff
3 changed files with 22 additions and 16 deletions
|
|
@ -30,7 +30,7 @@
|
|||
<record id="action_report_ekg_delivery" model="ir.actions.report">
|
||||
<field name="name">EKG Delivery Slip</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip</field>
|
||||
<field name="report_file">nfu_ekg_stock.report_deliveryslip</field>
|
||||
<field
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
td.fit,
|
||||
th.fit {
|
||||
width: 0;
|
||||
td.batch,
|
||||
th.batch {
|
||||
width: 80px;
|
||||
max-width: 80px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th.qty {
|
||||
width: 60px;
|
||||
max-width: 60px;
|
||||
white-space: nowrap;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
th.partner {
|
||||
|
|
|
|||
|
|
@ -7,26 +7,26 @@
|
|||
|
||||
<div class="scissors"/>
|
||||
<div class="page" style="page-break-inside: avoid;">
|
||||
<div class="row mt32">
|
||||
<div class="row mt16">
|
||||
<div class="col-auto" name="div_name" t-if="partner">
|
||||
<strong><span t-field="partner.name"/></strong>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-sm" name="stock_move_table">
|
||||
<table class="table table-sm" name="stock_move_table" style="font-size: smaller">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="fit" name="th_sm_product_qty"><strong>Batch Size</strong></th>
|
||||
<th name="th_sm_product"><strong>Product</strong></th>
|
||||
<th class="fit" name="th_sm_ordered"><strong>Ordered</strong></th>
|
||||
<th class="batch text-start" name="th_sm_product_qty"><strong>Batch Size</strong></th>
|
||||
<th class="text-start" name="th_sm_product"><strong>Product</strong></th>
|
||||
<th class="qty text-end" name="th_sm_ordered"><strong>Available</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 class="batch text-truncate">
|
||||
<t t-foreach="move.product_id.packaging_ids" t-as="packaging">
|
||||
<span t-esc="packaging.name"/>
|
||||
</t>
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="move.product_id.name"/>
|
||||
|
|
@ -36,8 +36,8 @@
|
|||
<span t-field="move.description_picking"/>
|
||||
</p>
|
||||
</td>
|
||||
<td class="fit">
|
||||
<span t-field="move.product_uom_qty"/>
|
||||
<td class="text-end">
|
||||
<span t-field="move.forecast_availability"/>
|
||||
<span t-field="move.product_uom"/>
|
||||
</td>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue