fusion_plating: add opt_in_out field + time tracking display (v19.0.2.0.4)
New opt_in_out selection field (disabled/opt-in/opt-out) matching Steelhead's Configure OPT IN/OUT feature. Shown in both the form view and the tree editor side panel. Time tracking: form view now shows Created, Created By, Last Updated, Updated By fields. Tree editor side panel shows relative timestamps down to the second (e.g. "46w 3d 4h 17m 21s ago by Brett Kinzett"). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -143,6 +143,17 @@ class FpProcessNode(models.Model):
|
||||
default=False,
|
||||
help='Quality hold point — requires operator sign-off.',
|
||||
)
|
||||
opt_in_out = fields.Selection(
|
||||
[
|
||||
('disabled', 'Disabled'),
|
||||
('opt_in', 'Opt-In'),
|
||||
('opt_out', 'Opt-Out'),
|
||||
],
|
||||
string='Opt In/Out',
|
||||
default='disabled',
|
||||
help='Controls whether this step is optional for a given job.',
|
||||
tracking=True,
|
||||
)
|
||||
|
||||
# ---- Lifecycle -----------------------------------------------------------
|
||||
|
||||
@@ -274,7 +285,12 @@ class FpProcessNode(models.Model):
|
||||
'requires_signoff': self.requires_signoff,
|
||||
'version': self.version,
|
||||
'child_count': len(children),
|
||||
'opt_in_out': self.opt_in_out or 'disabled',
|
||||
'input_count': len(self.input_ids),
|
||||
'create_date': self.create_date.isoformat() if self.create_date else '',
|
||||
'create_uid_name': self.create_uid.name if self.create_uid else '',
|
||||
'write_date': self.write_date.isoformat() if self.write_date else '',
|
||||
'write_uid_name': self.write_uid.name if self.write_uid else '',
|
||||
'children': children,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user