Skip to content

[7194][ADD] stock_picking_product_barcode_report_lot_label: print the lot as a scannable barcode - #157

Draft
nobuQuartile wants to merge 1 commit into
16.0from
16.0-add-stock_picking_product_barcode_report_lot_label
Draft

[7194][ADD] stock_picking_product_barcode_report_lot_label: print the lot as a scannable barcode#157
nobuQuartile wants to merge 1 commit into
16.0from
16.0-add-stock_picking_product_barcode_report_lot_label

Conversation

@nobuQuartile

Copy link
Copy Markdown
Contributor

QT7194

The product barcode label of stock_picking_product_barcode_report prints the lot/serial number as plain text only, so an operator scanning the label still has to key the lot in by hand. This module adds a second Code128 symbol carrying the lot number underneath the product barcode.

Labels printed in GS1-128 format are left untouched: that barcode already carries the lot in application identifier (10), so the xpath anchors in the non-GS1 branch on purpose. The lot number itself is not reprinted, since the base template already shows it below the label.

Notes for the reviewer

  • Depends on a module that is not yet on axls-oca 16.0. stock_picking_product_barcode_report currently arrives via [7194][ADD] stock_barcodes, stock_picking_product_barcode_report, web_widget_numeric_step axls-oca#238. The test-requirements.txt entry below is therefore not included yet — adding it now would break pip install for the whole repo's CI. Please add it once #238 is merged:
    git+https://github.com/qrtl/axls-oca@16.0#subdirectory=setup/stock_picking_product_barcode_report
    
  • Label space is tight. paperformat_label is 47mm x 29mm (~82px). Existing content is ~61px, and the added barcode is 22px high, so it is close to the limit. Worth a test print before rollout.

Testing

--test-enable -u stock_picking_product_barcode_report_lot_label on 16.0: 0 failed, 0 error(s) of 3 tests. The suite renders the report and asserts the barcode count — 2 with a lot, 1 without, and 1 in GS1-128 format (no duplicate).

… lot as a scannable barcode

The product barcode label of stock_picking_product_barcode_report prints the
lot/serial number as plain text only, so an operator scanning the label still
has to key the lot in by hand.

Add a second Code128 symbol carrying the lot number underneath the product
barcode. The xpath anchors in the non-GS1 branch on purpose: a GS1-128 barcode
already carries the lot in application identifier (10), so a second symbol
there would only duplicate it.

The lot number itself is not reprinted, since the base template already shows
it below the label.
@nobuQuartile
nobuQuartile marked this pull request as draft September 1, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant