mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[12.0][ADD] stock_picking_product_label
This commit is contained in:
0
stock_picking_product_label/__init__.py
Normal file
0
stock_picking_product_label/__init__.py
Normal file
21
stock_picking_product_label/__manifest__.py
Normal file
21
stock_picking_product_label/__manifest__.py
Normal 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',
|
||||
}
|
||||
3
stock_picking_product_label/readme/CONTRIBUTORS.rst
Normal file
3
stock_picking_product_label/readme/CONTRIBUTORS.rst
Normal 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>
|
||||
2
stock_picking_product_label/readme/DESCRIPTION.rst
Normal file
2
stock_picking_product_label/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
This module allows users to print labels of all done products in a stock picking.
|
||||
|
||||
3
stock_picking_product_label/readme/USAGE.rst
Normal file
3
stock_picking_product_label/readme/USAGE.rst
Normal file
@@ -0,0 +1,3 @@
|
||||
Guidelines for use:
|
||||
|
||||
* In a Stock Picking, press the Print button and then Product Barcodes (PDF).
|
||||
12
stock_picking_product_label/reports/report_print_labels.xml
Normal file
12
stock_picking_product_label/reports/report_print_labels.xml
Normal 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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user