This commit is contained in:
gsinghpal
2026-04-26 15:05:17 -04:00
parent 160198edb1
commit d9f58b9851
110 changed files with 6210 additions and 1182 deletions

View File

@@ -73,15 +73,9 @@ class FpBatch(models.Model):
domain="[('state', '!=', 'retired')]",
tracking=True,
)
workorder_id = fields.Many2one(
'mrp.workorder', string='Work Order',
help='The WO this batch ran through. Used for material traceability.',
tracking=True,
)
production_id = fields.Many2one(
'mrp.production', string='Manufacturing Order',
related='workorder_id.production_id', store=True, readonly=True,
)
# Phase 6 (Sub 11) — workorder_id / production_id retired (MRP gone).
# Native equivalents: x_fc_step_id (fp.job.step) + x_fc_job_id (fp.job)
# are added by fusion_plating_jobs and carry the same traceability.
part_count = fields.Integer(string='Part Count')
start_time = fields.Datetime(string='Process Start', tracking=True)
end_time = fields.Datetime(string='Process End', tracking=True)