feat(fusion_plating): long_running flag on process node (auto-pause opt-out)
Plan task P2.1. Boolean on fusion.plating.process.node that exempts steps generated from this node from the shop-floor auto-pause cron (added in P2.4/P2.5). Use for 24h bakes, multi-shift soaks, and similar long-but-legitimate operations. Toggle visible on the process-node form for operation/step types, grouped with parallel_start in the Behaviour section. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -263,6 +263,16 @@ class FpProcessNode(models.Model):
|
||||
'progress (e.g. paperwork or QA review that runs alongside '
|
||||
'production).',
|
||||
)
|
||||
long_running = fields.Boolean(
|
||||
string='Long-running step',
|
||||
default=False,
|
||||
help='When True, steps generated from this recipe node are exempt '
|
||||
'from the shop-floor auto-pause cron. Use for 24h bakes, '
|
||||
'multi-shift soaks, and similar legitimately-long operations '
|
||||
'that would otherwise be auto-paused after the idle threshold '
|
||||
'(ir.config_parameter fp.shopfloor.autopause_threshold_hours, '
|
||||
'default 8h). See plan 2026-05-22-shopfloor-tablet-redesign.',
|
||||
)
|
||||
opt_in_out = fields.Selection(
|
||||
[
|
||||
('disabled', 'Required'),
|
||||
|
||||
@@ -96,6 +96,11 @@
|
||||
<field name="parallel_start"
|
||||
invisible="node_type not in ('operation', 'step')"
|
||||
help="When the parent recipe is Sequential, ticking this lets the step start while earlier-sequence steps are still in progress."/>
|
||||
<!-- Phase 2 tablet redesign — opt out of the
|
||||
auto-pause cron for legitimately-long steps
|
||||
(24h bakes, multi-shift soaks). -->
|
||||
<field name="long_running"
|
||||
invisible="node_type not in ('operation', 'step')"/>
|
||||
<field name="requires_predecessor_done"
|
||||
invisible="node_type not in ('operation', 'step')"
|
||||
groups="fusion_plating.group_fusion_plating_supervisor"
|
||||
|
||||
Reference in New Issue
Block a user