diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 405fd1d5..33363a8a 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -67,7 +67,7 @@ class MrpProduction(models.Model): ('待加工', '待加工'), ('待解除装夹', '待解除装夹'), ('已完工', '已完工'), - ], string='工序状态') + ], string='工序状态', default='待装夹') # 零件图号 part_number = fields.Char('零件图号') diff --git a/sf_plan/models/custom_plan.py b/sf_plan/models/custom_plan.py index b2f04edd..14c8dd93 100644 --- a/sf_plan/models/custom_plan.py +++ b/sf_plan/models/custom_plan.py @@ -219,6 +219,7 @@ class sf_production_plan(models.Model): record.state = 'done' # record.production_id.schedule_state = '已排' record.sudo().production_id.schedule_state = '已排' + record.sudo().production_id.process_state = '待装夹' # self.env['sale.order'].browse(record.production_id.origin).schedule_status = 'to process' sale_obj = self.env['sale.order'].search([('name', '=', record.origin)]) if 'S' in sale_obj.name: