diff --git a/fusion_plating/fusion_plating_jobs/models/fp_job_step.py b/fusion_plating/fusion_plating_jobs/models/fp_job_step.py index ec42d116..e23a655a 100644 --- a/fusion_plating/fusion_plating_jobs/models/fp_job_step.py +++ b/fusion_plating/fusion_plating_jobs/models/fp_job_step.py @@ -1200,6 +1200,22 @@ class FpJobStep(models.Model): # quick-look modal. The modal is bound via context= on the parent # job form's — no TransientModel needed. + # Job-level context for the quick-look modal — restored after commit + # b0070afc accidentally removed these while still referencing them in + # fp_job_step_quick_look_views.xml (entech caught the mismatch during + # the 2026-05-22 Phase 1-4 deploy). + quick_look_partner_id = fields.Many2one( + 'res.partner', + string='Customer', + related='job_id.partner_id', + readonly=True, + ) + quick_look_part_catalog_id = fields.Many2one( + 'fp.part.catalog', + string='Part', + related='job_id.part_catalog_id', + readonly=True, + ) quick_look_instructions = fields.Html( string='Operator Instructions', related='recipe_node_id.description',