From 449f29fc7fe448e066227ce52ab7bb78f359f819 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Tue, 12 May 2026 18:51:17 -0400 Subject: [PATCH] =?UTF-8?q?fix(reports):=20WO=20Margin=20PDF=20=E2=80=94?= =?UTF-8?q?=20t-field=20requires=20dot-notation=20on=20Odoo=2019?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The template used 't-field="step['rate']"' for monetary values pulled from dict rows. Odoo 19's QWeb asserts t-field has at least one dot (it's strictly for record.field_name lookups). Replaced six bare-dict t-field usages with t-esc; the existing t-options widget=monetary + display_currency still applies for currency formatting. Verified by rendering report for WO-30019 — 1229-byte valid PDF, no QWeb error. Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_plating/fusion_plating_jobs/__manifest__.py | 2 +- .../report/report_fp_job_margin.xml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fusion_plating/fusion_plating_jobs/__manifest__.py b/fusion_plating/fusion_plating_jobs/__manifest__.py index 822024bd..aaed5ae3 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.8', + 'version': '19.0.8.22.9', '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/report/report_fp_job_margin.xml b/fusion_plating/fusion_plating_jobs/report/report_fp_job_margin.xml index 4114a195..e67dadac 100644 --- a/fusion_plating/fusion_plating_jobs/report/report_fp_job_margin.xml +++ b/fusion_plating/fusion_plating_jobs/report/report_fp_job_margin.xml @@ -45,8 +45,8 @@ - - + + @@ -54,16 +54,16 @@ - +

Margin Summary

- - - + + +
Quoted Revenue
Actual Cost
Margin
Quoted Revenue
Actual Cost
Margin
Margin %%