changes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Fusion Plating — Batch Processing',
|
||||
'version': '19.0.1.0.0',
|
||||
'version': '19.0.2.0.0',
|
||||
'category': 'Manufacturing/Plating',
|
||||
'summary': 'Group parts into rack or barrel loads for tank processing.',
|
||||
'author': 'Nexa Systems Inc.',
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Phase 6 (Sub 11) — drop legacy MRP columns from fusion_plating_batch.
|
||||
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
if not version:
|
||||
return
|
||||
cr.execute("ALTER TABLE fusion_plating_batch DROP COLUMN IF EXISTS production_id")
|
||||
cr.execute("ALTER TABLE fusion_plating_batch DROP COLUMN IF EXISTS workorder_id")
|
||||
_logger.info("Sub 11: dropped production_id + workorder_id from fusion_plating_batch")
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user