修复制造订单加工无状态问题

This commit is contained in:
mgw
2024-05-11 22:42:58 +08:00
parent d3677b9c89
commit 391a172016
2 changed files with 2 additions and 1 deletions

View File

@@ -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: