From eddf803d4c8d73b60b649a8ebbafd84706cc13d5 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Thu, 23 Apr 2026 10:17:56 -0400 Subject: [PATCH] feat(reports): split customer-facing line header into Part Number + Description columns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User request: on customer-facing PDFs the single "Part" column was stacking part number + revision + description together. Split into two distinct columns so customers see Part Number in its own field and the Description column carries only the prose. Macro split: * customer_line_part_number — strong part number + "(Rev X)" * customer_line_description — line.name + any populated line metadata (serial, job#, thickness) * customer_line_header (legacy) kept as a thin wrapper that t-calls both macros stacked so older reports still render. Reports updated — each gains a new first "PART NUMBER" column and the old "PART" column renamed to "DESCRIPTION": * report_fp_sale (both portrait variants) * report_fp_invoice (both portrait variants) * report_fp_packing_slip (both variants — delivery + MO-origin) Column widths rebalanced per report. Section / note colspans bumped to account for the extra column. report_fp_bol left as-is — its "Description of Goods" td is a freight-convention combined field, intentionally keeps the stacked layout via the legacy customer_line_header macro. fusion_plating_reports → 19.0.6.0.0 Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/customer_line_header.xml | 46 ++++++++++++++++--- .../report/report_fp_invoice.xml | 22 ++++++--- .../report/report_fp_packing_slip.xml | 20 +++++--- .../report/report_fp_sale.xml | 22 ++++++--- 5 files changed, 84 insertions(+), 28 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 1b90f70d..128f548c 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.5.1.0', + 'version': '19.0.6.0.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/customer_line_header.xml b/fusion_plating/fusion_plating_reports/report/customer_line_header.xml index 13c20c32..2992a40d 100644 --- a/fusion_plating/fusion_plating_reports/report/customer_line_header.xml +++ b/fusion_plating/fusion_plating_reports/report/customer_line_header.xml @@ -20,13 +20,34 @@ --> + + + + + + + + + diff --git a/fusion_plating/fusion_plating_reports/report/report_fp_invoice.xml b/fusion_plating/fusion_plating_reports/report/report_fp_invoice.xml index 29965856..1348f59b 100644 --- a/fusion_plating/fusion_plating_reports/report/report_fp_invoice.xml +++ b/fusion_plating/fusion_plating_reports/report/report_fp_invoice.xml @@ -80,7 +80,8 @@ - + + @@ -91,15 +92,18 @@ - + - + +
PARTPART NUMBERDESCRIPTION QTY UOM UNIT PRICE
- + + + @@ -262,11 +266,12 @@ - + - + + @@ -286,7 +291,10 @@ +
PARTPART NUMBERDESCRIPTION QTY UOM UNIT PRICE
- + + + diff --git a/fusion_plating/fusion_plating_reports/report/report_fp_packing_slip.xml b/fusion_plating/fusion_plating_reports/report/report_fp_packing_slip.xml index ff2878ff..bc33eda9 100644 --- a/fusion_plating/fusion_plating_reports/report/report_fp_packing_slip.xml +++ b/fusion_plating/fusion_plating_reports/report/report_fp_packing_slip.xml @@ -77,7 +77,8 @@ - + + @@ -86,9 +87,12 @@ + +
PARTPART NUMBERDESCRIPTION QTY UOM LOT / SERIAL
- - + + + @@ -213,7 +217,8 @@ - + + @@ -224,9 +229,12 @@ + +
PARTPART NUMBERDESCRIPTION ORDERED DONE UOM
- - + + + diff --git a/fusion_plating/fusion_plating_reports/report/report_fp_sale.xml b/fusion_plating/fusion_plating_reports/report/report_fp_sale.xml index ec1db5ad..5da32a0c 100644 --- a/fusion_plating/fusion_plating_reports/report/report_fp_sale.xml +++ b/fusion_plating/fusion_plating_reports/report/report_fp_sale.xml @@ -137,7 +137,8 @@ - + + @@ -148,15 +149,18 @@ - + - + +
PARTPART NUMBERDESCRIPTION QTY UOM UNIT PRICE
- + + + @@ -403,11 +407,12 @@ - + - + + @@ -427,7 +432,10 @@ +
PARTPART NUMBERDESCRIPTION QTY UOM UNIT PRICE
- + + +