[IMP] stock_barcode_picking_batch: improve barcode usuability

Add the name in a barcode form into the printed
batch transfer to use the enterprise feature. The
barcode is now in the printed batch transfer and
there is a new print action in the batch transfer model.

task-2196687
This commit is contained in:
Rémy Voet (ryv)
2020-05-25 08:48:15 +00:00
parent 54cbedeaf7
commit 82ca6b92c8
2 changed files with 6 additions and 2 deletions
@@ -11,7 +11,12 @@
<t t-set="locations" t-value="move_line_ids.mapped('location_id').sorted(lambda location: location.complete_name)"/>
<t t-call="web.external_layout">
<div class="page">
<h3>Summary: <span t-field="o.name"/></h3>
<div class="d-flex">
<div><h3>Summary: <span t-field="o.name"/></h3></div>
<div class="mr-auto">
<img alt="Barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', quote_plus(o.name or ''), 600, 150)" style="width:300px;height:50px"/>
</div>
</div>
<div t-if="o.user_id">
<strong>Responsible:</strong>
<span t-field="o.user_id"/>
@@ -6,7 +6,6 @@
id="action_report_picking_batch"
model="stock.picking.batch"
report_type="qweb-pdf"
menu="False"
name="stock_picking_batch.report_picking_batch"
file="stock_picking_batch.report_picking_batch"
/>