From 83c4eb7ee14c4e6833c97389abe1709e8d7f8fd6 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Tue, 12 May 2026 21:58:02 -0400 Subject: [PATCH] feat(sticker): restore older 3-cell-header + right-Notes-panel layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per user request — the previous (now restored) layout is the one operators were used to: - Header: single row with 3 cells side-by-side (Logo | WO # | QR) instead of the stacked logo+WO# left / QR right. - Body: 3-col layout (Label | Value | Notes-rowspan). Notes is a tall right-side panel spanning all 7 body rows — gives operators ~62mm of vertical space for multi-line notes (vs. the prior single-row Notes that capped at ~8.7mm). - Fields: PO #, SN #, Customer, Part #, Due Date, Thickness, Qty. SN # joins x_fc_serial_ids; Thickness composes from the coating's thickness_min/max + uom. - Header band 32% (was 40%), body band 68% — the header is shorter because there's no stacked logo/WO# anymore; body grows to absorb the freed space, but the 7-row grid already provided ample per-row height. - Body text 17pt main / 13pt muted (down from 38pt). The big-font pass was for a 7-row equal-height grid; with the 3-col layout the per-row height is unchanged but the rows are now narrower (only ~70% of the page width minus the Notes panel), so a more conservative font keeps text from wrapping mid-cell. - QR generation stays at 600x600 (sharper print at scan time). Variable interface unchanged. mrp.production / mrp.workorder / fp.job / sale.order all still call the same inner template; two new variables (_serial_names, _thickness_str) get pre-set by the defaults template and resolved by the inner. Verified: 72-KB PDF renders cleanly on entech for WO-30019. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_fp_wo_sticker.xml | 370 +++++++++--------- 2 files changed, 187 insertions(+), 185 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index ee9b4584..cb7be319 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.1', + 'version': '19.0.10.5.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 9b440f9b..71c469ee 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 @@ -67,8 +67,26 @@ else (_mo and _mo.name) or ''"/> + + + + - - - - - - - - -
-
- WO # -
-
- - -
- -
- - - + + + + + + + + + + + +
+
+ WO # +
+
+
+ +
+
- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PO (RO): - - - - () - - -
Customer: - -
Process: - - - - - - - - -
Part Number: - + + + + + + + + + - - - - - - - - - - - - - -
PO #: - - - - - - + t-esc="_po_number"/> + - Rev + () - - - -
Due Date: - - - - - -
Qty: - - - -
Notes: - -
+
+ Notes: + +
SN #: + +
Customer: + +
Part #: + + + + + + + + + Rev + + + + - +
Due Date: + + + + - +
Thickness: + +
Qty: + + + +
@@ -372,6 +372,8 @@ + +