From 35bd50150ee8522140e62163de0f4cf264edbe5d Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Tue, 12 May 2026 21:49:40 -0400 Subject: [PATCH] =?UTF-8?q?revert(sticker):=20restore=20previous=20layout?= =?UTF-8?q?=20=E2=80=94=20Notes=20needs=20full=20height=20for=20multi-line?= =?UTF-8?q?=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Walk back the layout changes from d7bbeb4. Operators write multi-line notes on these stickers (process tweaks, customer-specific reminders), so trimming the Notes row to 10% broke a daily-use pattern. Restored values: - header band 40% (was 44%) - body band 60% (was 56%), 7 equal rows at 14.28% each - QR wrap 380px (was 460px) - QR image 510px with -65px offset (was 620/-80px) - body font 38pt (was 44pt), muted 28pt (was 32pt) - removed per-row classes; single shared rule Quiet quality keeper: QR is still GENERATED at 600x600 (was 300x300) and DISPLAYED at 380px — so the printed image is now down-scaled instead of up-scaled, which is sharper on thermal printers. No visible layout change. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_fp_wo_sticker.xml | 53 +++++++------------ 2 files changed, 21 insertions(+), 34 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 5f64b5d2..ee9b4584 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.4.0', + 'version': '19.0.10.4.1', '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 ddfd1c07..9b440f9b 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 @@ -100,14 +100,11 @@ page-break-after: always; page-break-inside: avoid; } - /* ---- HEADER band — grew to 44% (was 40%) to fit a bigger QR - for thermal-printer scan reliability. The body band is now - 56% but each row stays roughly the same height because - we tightened the Notes row at the bottom. */ + /* ---- HEADER band — 40% to fit 2x WO# + logo + QR. */ .fp-sticker-head-wrap { position: absolute; left: 0; right: 0; top: 0; - height: 44%; + height: 40%; border-bottom: 2px solid #000; box-sizing: border-box; padding: 0; @@ -174,32 +171,26 @@ render the image larger than the wrapper and offset it so the wrapper clips that border out. ---------------------- */ .fp-sticker-qr-wrap { - width: 460px; - height: 460px; + width: 380px; + height: 380px; display: inline-block; position: relative; overflow: hidden; } .fp-sticker-qr { - width: 620px; - height: 620px; + width: 510px; + height: 510px; position: absolute; - top: -80px; - left: -80px; + top: -65px; + left: -65px; margin: 0; display: block; } - /* ---- BODY band — first 6 rows are equal-height; the - final Notes row takes less. Header moved down to 44% - so this band is 56%; the row-height split below brings - the 6 main rows to ~9.4mm each (slightly more than the - old equal-split 8.7mm despite the smaller band). Notes - drops to ~6mm — enough for 1-2 lines of the bigger - text below. ---- */ + /* ---- BODY band (7 rows, each 14.28% of the band) ---- */ .fp-sticker-body-wrap { position: absolute; left: 0; right: 0; - top: 44%; bottom: 0; + top: 40%; bottom: 0; } table.fp-sticker-body { width: 100%; @@ -207,15 +198,14 @@ table-layout: fixed; border-collapse: collapse; } - table.fp-sticker-body tr.fp-sticker-row-main { height: 15%; } - table.fp-sticker-body tr.fp-sticker-row-notes { height: 10%; } + table.fp-sticker-body tr { height: 14.28%; } table.fp-sticker-body tr + tr td { border-top: 1px solid #000; } col.fp-col-label { width: 32%; } col.fp-col-value { width: 68%; } table.fp-sticker-body td { vertical-align: middle; padding: 0 14px; - font-size: 44pt; + font-size: 38pt; line-height: 1.1; } td.fp-sticker-label { @@ -230,10 +220,7 @@ white-space: nowrap; } .fp-sticker-strong { font-weight: 700; } - .fp-sticker-muted { color: #555; font-size: 32pt; } - /* Notes row uses a slightly smaller font so 1-2 lines fit - in the trimmed-down height. -------------------------- */ - tr.fp-sticker-row-notes td { font-size: 32pt; } + .fp-sticker-muted { color: #555; font-size: 28pt; }
@@ -285,7 +272,7 @@ - + PO (RO): - + Customer: - + Process: @@ -315,7 +302,7 @@ - - + Part Number: @@ -339,7 +326,7 @@ - - + Due Date: @@ -348,7 +335,7 @@ - - + Qty: @@ -356,7 +343,7 @@ - + Notes: