去掉销售订单加工状态
This commit is contained in:
@@ -221,9 +221,9 @@ class sf_production_plan(models.Model):
|
||||
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:
|
||||
sale_obj.schedule_status = 'to process'
|
||||
# sale_obj = self.env['sale.order'].search([('name', '=', record.origin)])
|
||||
# if 'S' in sale_obj.name:
|
||||
# sale_obj.schedule_status = 'to process'
|
||||
mrp_production_ids = record.production_id._get_children().ids
|
||||
print('mrp_production_ids', mrp_production_ids)
|
||||
for i in mrp_production_ids:
|
||||
@@ -313,8 +313,8 @@ class sf_production_plan(models.Model):
|
||||
aa.schedule_state = '未排'
|
||||
# self.env['sale.order'].browse(record.production_id.origin).schedule_status = 'to shedule'
|
||||
sale_obj = self.env['sale.order'].search([('name', '=', self.origin)])
|
||||
if 'S' in sale_obj.name:
|
||||
sale_obj.schedule_status = 'to schedule'
|
||||
# if 'S' in sale_obj.name:
|
||||
# sale_obj.schedule_status = 'to schedule'
|
||||
return self.date_planned_finished
|
||||
|
||||
def liucheng_cs(self):
|
||||
|
||||
Reference in New Issue
Block a user