changes
This commit is contained in:
@@ -30,10 +30,19 @@ class FpQualityHold(models.Model):
|
||||
)
|
||||
|
||||
# ----- What's on hold -----
|
||||
# NOTE: workorder_id, production_id, and portal_job_id live in
|
||||
# fusion_plating_bridge_mrp (which depends on mrp and
|
||||
# fusion_plating_portal). Keeping them here would force hard
|
||||
# dependencies and break minimal CE-only installs.
|
||||
# Phase 1 (Sub 11) — native plating-job link replaces the legacy
|
||||
# workorder_id / production_id pair that lived in bridge_mrp.
|
||||
# The bridge fields stay during the migration window so existing
|
||||
# records keep their FKs; Phase 5 removes bridge_mrp entirely.
|
||||
job_id = fields.Many2one(
|
||||
'fp.job', string='Plating Job',
|
||||
index=True, ondelete='set null',
|
||||
)
|
||||
step_id = fields.Many2one(
|
||||
'fp.job.step', string='Job Step',
|
||||
domain="[('job_id', '=', job_id)]",
|
||||
ondelete='set null',
|
||||
)
|
||||
part_ref = fields.Char(string='Part Number')
|
||||
|
||||
# ----- Hold details -----
|
||||
|
||||
Reference in New Issue
Block a user