From e7c6960de9ee65a33bf3d806f39a15e51fa29491 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Wed, 13 May 2026 08:24:07 -0400 Subject: [PATCH] feat(sticker): restore customer-name secrecy cover (ABC-MANU) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Body Customer row now prints a 3-and-4 short code instead of the full company name. Operators see "ABC-MANU" on the floor; visiting customers / unauthorised passers-by can't immediately tell whose parts are on which rack. Rule (per user's reference design): - First 3 chars of first word + "-" + first 4 chars of second word - Single-word names → just first 3 chars - All uppercase - Strips non-alphanumeric per word so "St. John's Mfg." doesn't leak punctuation into the slice Logic lives in the shared inner template, so all 4 variants pick it up automatically: sale.order External + Internal Sticker fp.job External + Internal Job Sticker Verified on fp.job 2635: Customer row now reads "ABC-MANU" (was "ABC Manufactoring"). Doesn't use the orphaned x_fc_short_code field on res.partner (that field has no column or compute — broken Studio remnant). A future spec can replace this inline computation with a proper stored+inverse field if customers want per-partner overrides. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_fp_wo_sticker.xml | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 31f0d6c6..ee749e06 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.15.0', + 'version': '19.0.10.16.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 7d4e0535..ec497d9f 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 @@ -60,6 +60,22 @@ else (_mo and _mo.product_qty) or 0"/> + + + @@ -309,7 +325,7 @@ Customer: - +