在工单完成处控制状态,来避免非正常操作导致的制造订单状态异常问题

This commit is contained in:
mgw
2024-05-10 16:01:33 +08:00
parent e2d3b36683
commit d9543d42fd
3 changed files with 14 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ class MrpProduction(models.Model):
('待加工', '待加工'),
('待解除装夹', '待解除装夹'),
('已完工', '已完工'),
], string='工序状态', related='workorder_ids.process_state', store=True)
], string='工序状态')
# 零件图号
part_number = fields.Char('零件图号')