Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions setup/stock_picking_product_barcode_report_lot_label/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
77 changes: 77 additions & 0 deletions stock_picking_product_barcode_report_lot_label/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==============================================
Stock Picking Product Barcode Report Lot Label
==============================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f3aef39d549fcf348f2250edf250b261d0f7cce36dbdd8c4674e1f8c647112a2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Faxls--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/axls-custom/tree/16.0/stock_picking_product_barcode_report_lot_label
:alt: qrtl/axls-custom

|badge1| |badge2| |badge3|

The product barcode label of ``stock_picking_product_barcode_report``
prints the lot/serial number as plain text only, so a warehouse operator
has to key it in by hand when the label is scanned.

This module adds a second, scannable Code128 barcode carrying the
lot/serial number underneath the product barcode, on labels that have a
lot/serial number assigned.

Labels printed in GS1-128 format are left untouched: that barcode
already carries the lot in application identifier ``(10)``, so a second
symbol would only duplicate it.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/axls-custom/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/qrtl/axls-custom/issues/new?body=module:%20stock_picking_product_barcode_report_lot_label%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Quartile

Maintainers
-----------

.. |maintainer-nobuQuartile| image:: https://github.com/nobuQuartile.png?size=40px
:target: https://github.com/nobuQuartile
:alt: nobuQuartile

Current maintainer:

|maintainer-nobuQuartile|

This module is part of the `qrtl/axls-custom <https://github.com/qrtl/axls-custom/tree/16.0/stock_picking_product_barcode_report_lot_label>`_ project on GitHub.

You are welcome to contribute.
Empty file.
17 changes: 17 additions & 0 deletions stock_picking_product_barcode_report_lot_label/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2026 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Picking Product Barcode Report Lot Label",
"summary": "Add a scannable lot/serial barcode to the product barcode label",
"version": "16.0.1.0.0",
"author": "Quartile",
"website": "https://www.quartile.co",
"category": "Inventory",
"license": "AGPL-3",
"maintainers": ["nobuQuartile"],
"depends": ["stock_picking_product_barcode_report"],
"data": [
"report/report_label_barcode_template.xml",
],
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
The product barcode label of `stock_picking_product_barcode_report` prints the
lot/serial number as plain text only, so a warehouse operator has to key it in
by hand when the label is scanned.

This module adds a second, scannable Code128 barcode carrying the lot/serial
number underneath the product barcode, on labels that have a lot/serial number
assigned.

Labels printed in GS1-128 format are left untouched: that barcode already
carries the lot in application identifier `(10)`, so a second symbol would only
duplicate it.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="report_label_barcode_lot_barcode"
inherit_id="stock_picking_product_barcode_report.report_label_barcode"
>
<!-- The anchor sits in the non-GS1 branch on purpose: a GS1-128 barcode
already carries the lot in application identifier (10), so adding a
second symbol there would only duplicate it. -->
<xpath expr="//span[@t-esc='doc.product_id.barcode']" position="after">
<t t-if="doc.lot_id">
<br />
<img
t-att-src="'/report/barcode/?barcode_type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', doc.lot_id.name, 600, 100)"
style="width:100%;height:22px"
alt="Lot barcode"
/>
</t>
</xpath>
</template>
</odoo>
Loading
Loading