优化工单
This commit is contained in:
@@ -18,42 +18,7 @@ class Tray(models.Model):
|
|||||||
|
|
||||||
@api.onchange('production_id')
|
@api.onchange('production_id')
|
||||||
def updateTrayState(self):
|
def updateTrayState(self):
|
||||||
|
if self.workorder_id != False and self.create_date != False:
|
||||||
if self.workorder_id != False:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.state = '占用'
|
self.state = '占用'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user