From 46ef76555fd1d4e2e7e57478b2d23cb6db551a35 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 24 Oct 2019 08:49:59 +0000 Subject: [PATCH] [FIX] mrp: print barcodes - Create a product A with a barcode, UOM as 'Unit(s)' with a BOM - Create a MO for A with more than one unit, validate - Print the 'Finished Product Label (PDF)' A single label is printed for all units, although it is not logical: a label should be printed for each unit, as already done for the Zebra labels. In case the product UOM is 'Unit(s)', we print a label per unit. To do so, we use a template similar to `label_transfer_template_view_pdf`. opw-2091663 closes odoo/odoo#39311 Signed-off-by: Nicolas Martinelli (nim) --- .../mrp/report/mrp_production_templates.xml | 109 +++++++++++------- 1 file changed, 67 insertions(+), 42 deletions(-) diff --git a/addons/mrp/report/mrp_production_templates.xml b/addons/mrp/report/mrp_production_templates.xml index 0117687848c..de1dfe3d523 100644 --- a/addons/mrp/report/mrp_production_templates.xml +++ b/addons/mrp/report/mrp_production_templates.xml @@ -107,51 +107,76 @@