Skip to content

[MIG] product_label_template: migrate to 18.0 with configurable lot/serial barcode - #11

Open
kanda999 wants to merge 10 commits into
18.0from
18.0-mig-product_label_template
Open

[MIG] product_label_template: migrate to 18.0 with configurable lot/serial barcode#11
kanda999 wants to merge 10 commits into
18.0from
18.0-mig-product_label_template

Conversation

@kanda999

Copy link
Copy Markdown

What

Bring the RPL product_label_template module to RBKK (Odoo 18.0), keeping its original commit history, and add the ability to print the lot/serial barcode at a targeted position on the label.

Commits

  • [MIG] migrate to 18.0 — port from 12.0 (minimal scope): stock.production.lotstock.lot, 18.0 report/paperformat APIs (_render_qweb_pdf, get_paperformat), drop the RPL-specific expiry/production-date & GS1 handling (stock_lot_expiry_rpl, stock_lot_serial, treepoem) that do not exist on 18.0, add a Product Label print action bound to stock.lot (printable from Lot/Serial Numbers > Print), convert views to the 18.0 list/attribute syntax, relicense to LGPL-3.
  • [IMP] configurable barcode — optional Code128 barcode of the lot/serial number (the same barcode as the standard Lot/Serial Numbers label), with configurable width/height and left/top position, alongside the existing QR code.

The 8 preceding commits are the original 12.0 history (original authors preserved).

Test / verification

Installed and updated on an 18.0 database, then rendered the report for a lot via both the HTML and PDF paths:

  • the barcode (Code128) and QR <img> are generated encoding the lot/serial number;
  • the barcode is positioned at the configured mm coordinates (via the conversion coefficient);
  • the paper format is resolved dynamically from the product's label template.

pre-commit passes on the module.

🤖 Generated with Claude Code

Tim and others added 10 commits July 15, 2026 06:25
* add mrp_production_product_label_print

* update readme

* pre-commit

* update

* update readme
* add_requirements.txt_to_install_treepoem

* mark_around_reporting_function

* add_parameters_for_gs_image

* adjust_views_to_setup_odoo

* get_ga1_informtions

* adjust code

* hourly commit

* dairy commit

* print_out_label_with_gs1_image

* adjust styles

* minor change and pre-commit

* generate README

* responce for change request and minor change

* minor change

* dairy commit

* dairy commit_0917_onchange and compute parameters

* hourly commit_0921_1500

* add font_names

* adjust data_dependency

* implement font selection

* fix the font list and leave comment

* renew readme

* fix functional code

* fix coefficient

* update translation

* renew translation

* unfinished commitment_hourly commits

* tidy up

* style adjustments, translaton, readme

* add priority to view_product_form_label_template

* restore label_ratio in views, swittch from compute to onchange (_onchange_label_image())

* add label_ratio at product_product_views file

* restore latest change

Co-authored-by: tack-yabeQuartile <yabe@quartile.co>
…ient (#198)

* split printing texts to locate independently of each other

* display coefficient (environmental parameter)

* pre-commit

* normalize get_label_text_css()

* tidy up codes and configure.rst

Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
…late; print only QRs (#199)

* print only QRs but those may overlap each other (hourly commit)

* add a function of individual qr code printing

* make UI better, add filter setting with an error

* upgrade UI

* add paperformat for QR-print update translation unify some items etc.

* get paperformat from label template record

* update translation

* adjust default value of coefficient

Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
* attach required options

* adjust get_label_css
Migrate the module from 12.0 to 18.0 with a minimal scope for RBKK:

- rename stock.production.lot -> stock.lot and update the report /
  paperformat overrides to the 18.0 API (_render_qweb_pdf, get_paperformat)
- drop the RPL-specific dependencies and features that do not exist on 18.0:
  the expiry/production date and GS1 datamatrix handling coming from
  stock_lot_expiry_rpl / stock_lot_serial and the treepoem library
- add a "Product Label" print action bound to stock.lot so the label can be
  printed from Lot/Serial Numbers > Print (the 12.0 module relied on a
  separate print module that is not part of RBKK)
- convert views to the 18.0 list / attribute syntax and relicense to LGPL-3

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ble position

Add an optional barcode to the product label, alongside the existing QR code.
The barcode encodes the lot/serial number using Code128 - the same barcode as
the one printed by the standard Lot/Serial Numbers label - and its width,
height and left/top position on the label are configurable, like the other
label elements.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

3 participants