[MIG] product_label_template: migrate to 18.0 with configurable lot/serial barcode - #11
Open
kanda999 wants to merge 10 commits into
Open
[MIG] product_label_template: migrate to 18.0 with configurable lot/serial barcode#11kanda999 wants to merge 10 commits into
kanda999 wants to merge 10 commits into
Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Bring the RPL
product_label_templatemodule 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
stock.production.lot→stock.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 tostock.lot(printable from Lot/Serial Numbers > Print), convert views to the 18.0 list/attribute syntax, relicense to LGPL-3.Code128barcode 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:
Code128) and QR<img>are generated encoding the lot/serial number;pre-commitpasses on the module.🤖 Generated with Claude Code