From c2b693c97e3c814f4461333f39cdea546487bf23 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Mon, 25 May 2026 09:20:12 -0400 Subject: [PATCH] feat(fp.job): extend state with awaiting_cert + awaiting_ship Per spec docs/superpowers/specs/2026-05-25-post-shop-cert-shipping-job-states-design.md. Selection extension only; transitions wired in subsequent tasks. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_jobs/models/fp_job.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fusion_plating/fusion_plating_jobs/models/fp_job.py b/fusion_plating/fusion_plating_jobs/models/fp_job.py index 6514a1ec..a715dbaf 100644 --- a/fusion_plating/fusion_plating_jobs/models/fp_job.py +++ b/fusion_plating/fusion_plating_jobs/models/fp_job.py @@ -34,6 +34,21 @@ _COLUMN_SEQUENCE = [ class FpJob(models.Model): _inherit = 'fp.job' + # ===== Post-shop state extension (spec 2026-05-25) ================= + # Two intermediate states between in_progress and done so completed + # jobs awaiting cert + shipping stay visible on the Shop Floor board. + # See docs/superpowers/specs/2026-05-25-post-shop-cert-shipping-job-states-design.md + state = fields.Selection( + selection_add=[ + ('awaiting_cert', 'Awaiting Cert'), + ('awaiting_ship', 'Awaiting Ship'), + ], + ondelete={ + 'awaiting_cert': 'set default', + 'awaiting_ship': 'set default', + }, + ) + # ---- Tier 3 mirrors from sale.order ----------------------------- # Related (not stored) — pure display mirrors. Values may change on # the SO after job confirm (e.g. customer changes carrier preference)