From 06dc6a62b908f7b5c9d67312cd648c4c23e23d1e Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Fri, 22 May 2026 22:01:13 -0400 Subject: [PATCH] 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) --- .../fusion_plating/models/fp_process_node.py | 10 ++++++++++ .../fusion_plating/views/fp_process_node_views.xml | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/fusion_plating/fusion_plating/models/fp_process_node.py b/fusion_plating/fusion_plating/models/fp_process_node.py index e4e724bd..b44d3fdc 100644 --- a/fusion_plating/fusion_plating/models/fp_process_node.py +++ b/fusion_plating/fusion_plating/models/fp_process_node.py @@ -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'), diff --git a/fusion_plating/fusion_plating/views/fp_process_node_views.xml b/fusion_plating/fusion_plating/views/fp_process_node_views.xml index 2dcf6e4a..88e3c0ea 100644 --- a/fusion_plating/fusion_plating/views/fp_process_node_views.xml +++ b/fusion_plating/fusion_plating/views/fp_process_node_views.xml @@ -96,6 +96,11 @@ + +