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) <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user