From 12fcd1101663773d248db8186aef65fe78c8fff0 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Mon, 27 Apr 2026 21:39:41 -0400 Subject: [PATCH] =?UTF-8?q?feat(sub12c):=20operator=20traveller=20v2=20?= =?UTF-8?q?=E2=80=94=20paper-style=20A4=20landscape=20(Task=202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the minimal portrait template with the Amphenol-style paper sheet (screens 16-18): - Header: company logo + barcode (Code 128) + WO# + Date In + Due Date + Type + Order# + PO# + WO-Generated-By + customer block. - Item Information panel: Part# / Rev / Mat / Catg / S/N + Item-Name + Qty Rec / VIS INSP / Rework / Special Requirements / Stamp-Date. - Process-Sheet header: recipe name + category + spec/info. - Routing table (11 cols): Step / Tank / Operation+Actuals (recipe inputs render as 'Actual : ____ unit' lines) / Instruction / Unit / Material / Voltage / Time(min) / Temp / Stamp / Date. Targets pulled from recipe-node fields when present (Sub 12a authored), 'N/A' otherwise. Heavily defensive QWeb — every cross-module field access ('part_catalog_id' / 'coating_config_id' / 'qty_received' / 'special_requirements' / 'serial_number' / 'base_material' / 'customer_facing_description' / 'time_min_target' / etc.) guarded with 'X in record._fields' checks so the report renders cleanly even when some Sub 12a/12b fields aren't yet populated. New paperformat: A4 landscape narrow margins, 90 dpi. Action ID + report_name unchanged so existing form-button bindings keep working (binding_model_id still points at fp.job). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../report/report_fp_job_traveller.xml | 278 ++++++++++++++++-- 1 file changed, 250 insertions(+), 28 deletions(-) diff --git a/fusion_plating/fusion_plating_jobs/report/report_fp_job_traveller.xml b/fusion_plating/fusion_plating_jobs/report/report_fp_job_traveller.xml index d83afb28..ad2fec74 100644 --- a/fusion_plating/fusion_plating_jobs/report/report_fp_job_traveller.xml +++ b/fusion_plating/fusion_plating_jobs/report/report_fp_job_traveller.xml @@ -2,11 +2,30 @@ + + FP Traveller — A4 landscape narrow margins + A4 + Landscape + 10 + 10 + 8 + 8 + 5 + 90 + + Job Traveller fp.job @@ -16,48 +35,251 @@ 'Traveller - %s' % (object.name or '').replace('/', '-') report +