From 160198edb13817bd1de7585f408142e677b0cc5a Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sun, 26 Apr 2026 10:53:19 -0400 Subject: [PATCH] chore(reports): drop duplicate Print menu entries on legacy MRP models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the fp.job migration, every MRP-bound Print action in fusion_plating_reports has a fp.job-bound canonical version in fusion_plating_jobs. Having both registered means clicking Print on a record shows two identical entries. Removed 7 ir.actions.report records (templates kept for backwards compat — only the menu bindings are gone): action_report_wo_margin (mrp.production) action_report_fp_work_order_portrait (mrp.workorder) action_report_fp_work_order_landscape (mrp.workorder) action_report_fp_wo_sticker (mrp.workorder) action_report_fp_mo_sticker (mrp.production) action_report_fp_job_traveller_mo_landscape (mrp.production) action_report_fp_job_traveller_mo_portrait (mrp.production) Kept: action_report_fp_job_traveller_so_* (sale.order) action_report_fp_so_sticker (sale.order) The shared inner sticker templates (report_fp_wo_sticker_inner / _defaults) stay registered because fp.job + sale.order stickers both t-call them. Version: reports 19.0.7.17 -> 19.0.7.18. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_reports/__manifest__.py | 2 +- .../report/report_actions.xml | 110 +++--------------- 2 files changed, 20 insertions(+), 92 deletions(-) diff --git a/fusion_plating/fusion_plating_reports/__manifest__.py b/fusion_plating/fusion_plating_reports/__manifest__.py index 084e21f7..e07144d9 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.7.17.0', + 'version': '19.0.7.18.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 3ce7f987..ae401a1b 100644 --- a/fusion_plating/fusion_plating_reports/report/report_actions.xml +++ b/fusion_plating/fusion_plating_reports/report/report_actions.xml @@ -248,20 +248,11 @@ - - - - - Work Order Margin Report - mrp.production - qweb-pdf - fusion_plating_reports.report_wo_margin - fusion_plating_reports.report_wo_margin - 'Margin Report - %s' % object.name - - report - - + @@ -289,31 +280,9 @@ - - - - - Work Order Traveller (Portrait) - mrp.workorder - qweb-pdf - fusion_plating_reports.report_fp_work_order_portrait - fusion_plating_reports.report_fp_work_order_portrait - 'WO - %s' % object.name - - report - - - - Work Order Traveller (Landscape) - mrp.workorder - qweb-pdf - fusion_plating_reports.report_fp_work_order_landscape - fusion_plating_reports.report_fp_work_order_landscape - 'WO - %s' % object.name - - report - - + @@ -341,33 +310,12 @@ 300 - - WO Box Sticker - mrp.workorder - qweb-pdf - fusion_plating_reports.report_fp_wo_sticker - fusion_plating_reports.report_fp_wo_sticker - 'WO Sticker - %s' % object.name - - report - - - - - - WO Box Sticker - mrp.production - qweb-pdf - fusion_plating_reports.report_fp_mo_sticker - fusion_plating_reports.report_fp_mo_sticker - 'WO Sticker - %s' % (object.name or '').replace('/', '-') - - report - - + - - + + + + + - - Job Traveller (Landscape) - mrp.production - qweb-pdf - fusion_plating_reports.report_fp_job_traveller_mo_landscape - fusion_plating_reports.report_fp_job_traveller_mo_landscape - 'Traveller - %s' % object.name - - report - - - - - Job Traveller (Portrait) - mrp.production - qweb-pdf - fusion_plating_reports.report_fp_job_traveller_mo_portrait - fusion_plating_reports.report_fp_job_traveller_mo_portrait - 'Traveller - %s' % object.name - - report - - Job Traveller (Landscape) sale.order