From 63bf271725ba21e60bbd9240f3d99549e3aaf6b6 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Wed, 13 May 2026 08:04:29 -0400 Subject: [PATCH] feat(sticker): add Internal Sticker variant on sale.order Print menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same 3-cell + body layout as External; Notes column reads x_fc_internal_description (Sub 2 internal-description field on the SO line) instead of line.name. Shop floor gets ops-facing notes without leaking them to the customer-facing variant. New action record action_report_fp_so_sticker_internal — binds to sale.order, appears in the Print menu next to the existing External sticker. New template report_fp_so_sticker_internal that pre-sets _notes_content before t-calling the shared inner. Verified on SO-30019 with a seeded internal_description: Notes column reads "INTERNAL: rework if any dings on flange. Buff per WI-104." — confirms the override path is wired through the defaults-block initialiser, the inner's fallback chain, and the new outer template. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_actions.xml | 14 ++++++++ .../report/report_fp_wo_sticker.xml | 33 +++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 6802aa86..eb029c77 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.13.0', + 'version': '19.0.10.14.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_actions.xml b/fusion_plating/fusion_plating_reports/report/report_actions.xml index 0fb4dc0e..13ab8cad 100644 --- a/fusion_plating/fusion_plating_reports/report/report_actions.xml +++ b/fusion_plating/fusion_plating_reports/report/report_actions.xml @@ -335,6 +335,20 @@ + + + Internal Sticker + sale.order + qweb-pdf + fusion_plating_reports.report_fp_so_sticker_internal + fusion_plating_reports.report_fp_so_sticker_internal + 'Internal Sticker - %s' % (object.name or '').replace('/', '-') + + report + + + 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 a9be688a..7d4e0535 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 @@ -464,4 +464,37 @@ + + +