From d7bbeb49b70a4887a1a846d51d374fa6cbc1a757 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Tue, 12 May 2026 21:33:50 -0400 Subject: [PATCH] fix(sticker): bigger QR + larger body text + tighter Notes row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - QR generation bumped from 300x300 to 600x600 (down-scales at print time instead of up-scales — eliminates the pixelation that broke thermal-printer scans). - QR display wrapper grew from 380->460px; the underlying image and quiet-zone crop scaled proportionally (510->620px image, offset -65->-80px). - Header band 40%->44% so the bigger QR has room without crowding the logo / WO# stack. - Body band 60%->56%. First 6 rows take 15% of the band each (~9.4mm printed — slightly taller than the prior equal-split 8.7mm despite the smaller band) and the Notes row drops to 10% (~6mm). Notes is usually one-line content on these stickers; main rows carry the PO / Customer / Process / Part / Due / Qty info that has to read well from across the shop. - Body font 38pt->44pt, muted 28pt->32pt. Notes row uses 32pt so 1-2 lines still fit in its trimmed height. Verified: 123,668-byte PDF renders cleanly on entech (WO-30019). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_fp_wo_sticker.xml | 60 ++++++++++++------- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 6b5af406..5f64b5d2 100644 --- a/fusion_plating/fusion_plating_reports/__manifest__.py +++ b/fusion_plating/fusion_plating_reports/__manifest__.py @@ -3,7 +3,7 @@ # License OPL-1 (Odoo Proprietary License v1.0) { 'name': 'Fusion Plating — Reports', - 'version': '19.0.10.3.0', + 'version': '19.0.10.4.0', 'category': 'Manufacturing/Plating', 'summary': 'PDF reports for Fusion Plating: quote, SO, WO, packing, BoL, CoC, invoice, receipt, quality + compliance.', 'depends': [ diff --git a/fusion_plating/fusion_plating_reports/report/report_fp_wo_sticker.xml b/fusion_plating/fusion_plating_reports/report/report_fp_wo_sticker.xml index 706b8962..ddfd1c07 100644 --- a/fusion_plating/fusion_plating_reports/report/report_fp_wo_sticker.xml +++ b/fusion_plating/fusion_plating_reports/report/report_fp_wo_sticker.xml @@ -70,9 +70,12 @@ and _so.x_fc_internal_note.striptags()[:100]) or '-'"/> + to fetch /report/barcode/ over the network during rendering. + Generated at 600x600 (was 300x300) so it down-scales rather + than up-scales at print time — much sharper on Brother / + Zebra thermal printers where small QRs were dropping rows. --> + 'QR', _scan_url, width=600, height=600)"/>
@@ -269,7 +285,7 @@ - + PO (RO): - + Customer: - + Process: @@ -299,7 +315,7 @@ - - + Part Number: @@ -323,7 +339,7 @@ - - + Due Date: @@ -332,7 +348,7 @@ - - + Qty: @@ -340,7 +356,7 @@ - + Notes: