summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-04-15 15:01:31 +0000
committerRémy Voet (ryv) <ryv@odoo.com>2020-05-25 08:48:15 +0000
commit82ca6b92c89a73a7a261decc10d0ea6ea8a573fa (patch)
treeaa5b15834a2f6f34d15c8aa896b121f8ab6a2b66 /addons
parent54cbedeaf757ce20396ad1e2c1b8a4ab50576409 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/stock_picking_batch/report/report_picking_batch.xml7
-rw-r--r--addons/stock_picking_batch/report/stock_picking_batch_report_views.xml1
2 files changed, 6 insertions, 2 deletions
diff --git a/addons/stock_picking_batch/report/report_picking_batch.xml b/addons/stock_picking_batch/report/report_picking_batch.xml
index def0b016042..2a2c135854f 100644
--- a/addons/stock_picking_batch/report/report_picking_batch.xml
+++ b/addons/stock_picking_batch/report/report_picking_batch.xml
@@ -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"/>
diff --git a/addons/stock_picking_batch/report/stock_picking_batch_report_views.xml b/addons/stock_picking_batch/report/stock_picking_batch_report_views.xml
index 023e8d42242..9cbcdf9759c 100644
--- a/addons/stock_picking_batch/report/stock_picking_batch_report_views.xml
+++ b/addons/stock_picking_batch/report/stock_picking_batch_report_views.xml
@@ -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"
/>