ui+fix(jobs): compact row buttons + remove racking inspection gate
UI: secondary row buttons in the embedded step list are now icon-only with tooltips (Pause / Complete 1 → Next / Record / Skip / Move…). Saves ~70% horizontal space. "Finish & Next" stays text+icon as the primary action. Fix: removed the racking-inspection gate from button_finish. Racking is now a recipe step (not a separate inspection workflow), so the "Racking inspection for ... is Inspecting — must be Done" error no longer fires. _fp_check_racking_inspection_complete() helper is preserved for diagnostics but no longer called from the finish path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -910,8 +910,10 @@ class FpJobStep(models.Model):
|
||||
def button_finish(self):
|
||||
# Policy B — block until QA-005 complete (when customer requires it).
|
||||
self._fp_check_contract_review_complete()
|
||||
# Sub 8 — block until racking inspection is Done / Flagged.
|
||||
self._fp_check_racking_inspection_complete()
|
||||
# NOTE: racking inspection gate removed — racking is now a recipe
|
||||
# step, not a separate inspection workflow. _fp_check_racking_
|
||||
# inspection_complete() is kept as a helper for diagnostics but
|
||||
# no longer enforced from button_finish.
|
||||
result = super().button_finish()
|
||||
for step in self:
|
||||
if step.state == 'done':
|
||||
|
||||
Reference in New Issue
Block a user