1、优化工单状态

This commit is contained in:
yuxianghui
2024-07-31 11:45:59 +08:00
parent 2c15532c73
commit ffb775abb7
2 changed files with 6 additions and 0 deletions

View File

@@ -988,6 +988,9 @@ class ResMrpWorkOrder(models.Model):
# elif workorder.production_id.reservation_state != 'assigned' and workorder.state == 'ready':
# workorder.state = 'waiting'
def compute_state(self):
self._compute_state()
# 重写工单开始按钮方法
def button_start(self):
if self.routing_type == '装夹预调':