库位变更接口优化
This commit is contained in:
@@ -294,10 +294,10 @@ class sf_production_plan(models.Model):
|
||||
print('时间设置失败,请检查是否为工序分配工作中心,%s' % e)
|
||||
|
||||
def cancel_production_schedule(self):
|
||||
self.date_planned_start = False
|
||||
self.date_planned_finished = False
|
||||
self.date_planned_start = None
|
||||
self.date_planned_finished = None
|
||||
self.state = 'draft'
|
||||
self.production_line_id = False
|
||||
self.production_line_id = None
|
||||
aa = self.env['mrp.production'].sudo().search([('name', '=', self.name)])
|
||||
aa.schedule_state = '未排'
|
||||
# self.env['sale.order'].browse(record.production_id.origin).schedule_status = 'to shedule'
|
||||
|
||||
Reference in New Issue
Block a user