From 80d1cc563995d7d208c52ff409fafa8c7cac9693 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Tue, 12 May 2026 23:33:18 -0400 Subject: [PATCH] feat(sticker): 3-cell header + right-side Notes column + new field list Restores the original ENTECH sticker layout from the operator's screenshot reference: Header (3 horizontal cells, divided by vertical rules): [Logo] | WO #WO-30019 | [QR] Body (left side = field table, right side = Notes column): PO #: 587854 | Notes: SN #: - | Customer: ABC Manufact. | Part #: 9876... Rev A | Due Date: May 17, 2026 | Thickness: - | Qty: 1 | Changes from previous (stacked-left) layout: - Header: 1-row 3-cell (Logo 28% | WO# 44% | QR 28%) replaces the 2-cell w/ logo+WO# stacked on left. - Body: 2-region (66% / 34%) replaces single 7-row table. Notes column now spans full body height on the right. - Fields: SN # and Thickness added; Process row removed. - Labels: "PO (RO)" -> "PO #", "Part Number" -> "Part #". - Notes content: switched from SO.x_fc_internal_note to the SO line's `name` (= customer-facing description per Sub 2 Q6). - SN # reads _line.x_fc_serial_number (Sub 5 field). - Thickness reads _line.x_fc_thickness with coating.thickness fallback (Sub 5 field, defensive 'in _fields' check). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_fp_wo_sticker.xml | 349 +++++++++--------- 2 files changed, 174 insertions(+), 177 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 5f64b5d2..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.0', + '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 23379d77..0c2ebf08 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 @@ -69,6 +69,19 @@ or (_so and _so.x_fc_internal_note and _so.x_fc_internal_note.striptags()[:100]) or '-'"/> + + + + + + +
- - + + + - - +
+ + +
+ WO # +
+
@@ -270,90 +270,87 @@
+
- - - - - - - - - - - - - - - - - - - - + +
PO (RO): - - - - () - - -
Customer: - -
Process: - - - - - - - - -
Part Number: - - - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - -
PO #: + +
SN #: + +
Customer: + +
Part #: + + + + + + + + + + Rev + + - - Rev + - +
Due Date: + + + + - +
Thickness: + +
Qty: + + - - - - -
Due Date: - - - - - -
Qty: - - - -
Notes: - -
+
+
+
+
Notes:
+
+ +
+