Revert "feat(jobs): step sequences are 1, 2, 3, ... not 10, 20, 30, ..."

This reverts commit 32d48ea44d.
This commit is contained in:
gsinghpal
2026-05-03 23:30:37 -04:00
parent 32d48ea44d
commit 4c6bad04c5
7 changed files with 33 additions and 39 deletions

View File

@@ -3,7 +3,7 @@
# License OPL-1 (Odoo Proprietary License v1.0)
{
'name': 'Fusion Plating — Native Jobs',
'version': '19.0.8.17.4',
'version': '19.0.8.17.5',
'category': 'Manufacturing/Plating',
'summary': 'Native plating job model — replaces mrp.production / mrp.workorder bridge.',
'author': 'Nexa Systems Inc.',

View File

@@ -606,12 +606,7 @@ class FpJob(models.Model):
step_vals_list = []
wo_steps = {} # {sequence: instruction text}
# Sequences increment by 1 (operator-friendly: Step 1, 2, 3,
# ...) instead of the legacy 10/20/30 spacing. The 10-spacing
# was originally there to allow midpoint inserts, but
# operators kept asking why their work order said "Step 10"
# for the first row.
seq_counter = [1]
seq_counter = [10]
def _is_node_included(node):
"""Determine if a node should be included based on
@@ -764,7 +759,7 @@ class FpJob(models.Model):
step_vals_list.append(vals)
if instructions:
wo_steps[seq_counter[0]] = '\n'.join(instructions)
seq_counter[0] += 1
seq_counter[0] += 10
elif node.node_type in ('recipe', 'sub_process'):
for child in node.child_ids.sorted('sequence'):