[12.0][ADD] stock_picking_product_label

This commit is contained in:
Núria Martín Xifré
2019-11-12 13:49:37 +01:00
parent 898e2c4f54
commit 3eb751b49d
7 changed files with 59 additions and 0 deletions

View File

View File

@@ -0,0 +1,21 @@
# Copyright 2019 ForgeFlow (https://forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Print Labels in Picking',
'summary': "Print Product Labels in a Stock Picking",
'author': "ForgeFlow, Odoo Community Association (OCA)",
'website': "https://github.com/OCA/stock-logistics-reporting",
'category': 'Warehouse',
'version': '12.0.1.0.0',
'license': 'AGPL-3',
'depends': [
'stock'
],
'data': [
'reports/report_print_labels.xml',
'reports/report_print_labels_template.xml'
],
'development_status': 'Beta',
}

View File

@@ -0,0 +1,3 @@
* Adrià Gil <adria.gil@forgeflow.com>
* Joan Sisquella <joan.sisquella@forgeflow.com>
* Núria Martín <nuria.martin@forgeflow.com>

View File

@@ -0,0 +1,2 @@
This module allows users to print labels of all done products in a stock picking.

View File

@@ -0,0 +1,3 @@
Guidelines for use:
* In a Stock Picking, press the Print button and then Product Barcodes (PDF).

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<report
id="report_productbarcode_picking"
string="Product Barcodes (PDF)"
model="stock.picking"
report_type="qweb-pdf"
name="stock_picking_product_label.productbarcode_picking"
file="stock_picking_product_label.productbarcode_picking"
print_report_name="'Products barcode - %s' % (object.name)"
/>
</odoo>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="productbarcode_picking">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="picking">
<t t-foreach="picking.move_lines" t-as="move_line">
<t t-foreach="int(move_line.quantity_done)" t-as="">
<div class="page">
<t t-call="product.report_simple_barcode">
<t t-set="product" t-value="move_line.product_id"/>
</t>
</div>
</t>
</t>
</t>
</t>
</template>
</odoo>