diff --git a/fusion_plating/fusion_plating_jobs/__manifest__.py b/fusion_plating/fusion_plating_jobs/__manifest__.py index aaed5ae3..14866dcf 100644 --- a/fusion_plating/fusion_plating_jobs/__manifest__.py +++ b/fusion_plating/fusion_plating_jobs/__manifest__.py @@ -3,7 +3,7 @@ # License OPL-1 (Odoo Proprietary License v1.0) { 'name': 'Fusion Plating — Native Jobs', - 'version': '19.0.8.22.9', + 'version': '19.0.8.22.10', 'category': 'Manufacturing/Plating', 'summary': 'Native plating job model — replaces mrp.production / mrp.workorder bridge.', 'author': 'Nexa Systems Inc.', diff --git a/fusion_plating/fusion_plating_jobs/models/report_fp_job_margin.py b/fusion_plating/fusion_plating_jobs/models/report_fp_job_margin.py index 71bc89a9..fa40900b 100644 --- a/fusion_plating/fusion_plating_jobs/models/report_fp_job_margin.py +++ b/fusion_plating/fusion_plating_jobs/models/report_fp_job_margin.py @@ -10,7 +10,15 @@ from odoo import api, models class ReportFpJobMargin(models.AbstractModel): - _name = 'report.fusion_plating_jobs.report_fp_job_margin' + # Odoo looks up the report's data model via report.. + # The action's report_name is `fusion_plating_jobs.report_fp_job_margin_template`, + # so this MUST be `report.fusion_plating_jobs.report_fp_job_margin_template`. + # Pre-2026-05-12 the model name was missing the `_template` suffix, + # which silently caused _get_report_values to never fire and the + # template rendered with no `rows` -> blank PDF. The t-field error + # was masking this because it crashed earlier; once t-field was + # swapped to t-esc the blank-render surfaced. + _name = 'report.fusion_plating_jobs.report_fp_job_margin_template' _description = 'Work Order Margin Report' @api.model